mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s4-gensec_krb5: fix memleak in gensec_krb5_session_info().
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
9fed7ed00e
commit
d487bce3ab
@ -719,6 +719,7 @@ static NTSTATUS gensec_krb5_session_info(struct gensec_security *gensec_security
|
||||
} else {
|
||||
/* Found pac */
|
||||
pac_blob = data_blob_talloc(tmp_ctx, pac_data.data, pac_data.length);
|
||||
kerberos_free_data_contents(context, &pac_data);
|
||||
if (!pac_blob.data) {
|
||||
free(principal_string);
|
||||
krb5_free_principal(context, client_principal);
|
||||
|
Loading…
Reference in New Issue
Block a user