Skip to content

Commit 336473a

Browse files
Volodymyr Khomenkosimo5
authored andcommitted
Fixed memleak of usr_cred
Used in gssntlm_accept_sec_context as temporary credential holding data needed for the server authentication step Signed-off-by: Volodymyr Khomenko <[email protected]>
1 parent 18aed83 commit 336473a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gss_sec_ctx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,7 @@ uint32_t gssntlm_accept_sec_context(uint32_t *minor_status,
997997
}
998998
*context_handle = (gss_ctx_id_t)ctx;
999999
gssntlm_release_name(&tmpmin, (gss_name_t *)&server_name);
1000+
gssntlm_release_cred(&tmpmin, (gss_cred_id_t *)&usr_cred);
10001001
safefree(computer_name);
10011002
safefree(nb_computer_name);
10021003
safefree(nb_domain_name);

0 commit comments

Comments
 (0)