1
0
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:
Günther Deschner 2014-05-06 13:47:28 +02:00 committed by Andrew Bartlett
parent 9fed7ed00e
commit d487bce3ab

View File

@ -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);