diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-07-26 17:27:03 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:29:00 -0500 |
commit | d44063715accb8129a4c047c965fba9732d7c044 (patch) | |
tree | 9b7bd56c8c009ba2e53e068a51c220f05baf57e2 /source3 | |
parent | 6e419551ae06abff4b19abb6ceb1978f8c58e353 (diff) | |
download | samba-d44063715accb8129a4c047c965fba9732d7c044.tar.gz samba-d44063715accb8129a4c047c965fba9732d7c044.tar.bz2 samba-d44063715accb8129a4c047c965fba9732d7c044.zip |
r24058: Fix some memory leaks in ads_secrets_verify_ticket.
Jeremy, Günther, please review!
Thanks,
Volker
(This used to be commit 000e096c277a71ca30c1c109aae62241ad466bee)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libads/kerberos_verify.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/libads/kerberos_verify.c b/source3/libads/kerberos_verify.c index 378258ee08..ed889d027a 100644 --- a/source3/libads/kerberos_verify.c +++ b/source3/libads/kerberos_verify.c @@ -274,6 +274,7 @@ static krb5_error_code ads_secrets_verify_ticket(krb5_context context, auth_ok = True; krb5_copy_keyblock(context, key, keyblock); krb5_free_keyblock(context, key); + SAFE_FREE(key); break; } @@ -285,10 +286,12 @@ static krb5_error_code ads_secrets_verify_ticket(krb5_context context, if (ret == KRB5KRB_AP_ERR_TKT_NYV || ret == KRB5KRB_AP_ERR_TKT_EXPIRED || ret == KRB5KRB_AP_ERR_SKEW) { + SAFE_FREE(key); break; } krb5_free_keyblock(context, key); + SAFE_FREE(key); } |