diff options
author | Günther Deschner <gd@samba.org> | 2007-07-27 09:22:43 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:29:01 -0500 |
commit | 3ec8b1702cbda9d4f9dd276e2acef4057ee80a13 (patch) | |
tree | f580c5cc54717822e9b455e3853bb10d52170ceb | |
parent | bf27a77c05031aab0d558583fc2e1dfbe50b327d (diff) | |
download | samba-3ec8b1702cbda9d4f9dd276e2acef4057ee80a13.tar.gz samba-3ec8b1702cbda9d4f9dd276e2acef4057ee80a13.tar.bz2 samba-3ec8b1702cbda9d4f9dd276e2acef4057ee80a13.zip |
r24066: Fix memleak found by Volker. We don't leak keys now with MIT and Heimdal.
Guenther
(This used to be commit 7755ad750facc44b6a5df2136cb536547048cd48)
-rw-r--r-- | source3/libads/kerberos_verify.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libads/kerberos_verify.c b/source3/libads/kerberos_verify.c index 378258ee08..99288b78e5 100644 --- a/source3/libads/kerberos_verify.c +++ b/source3/libads/kerberos_verify.c @@ -285,6 +285,7 @@ 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) { + krb5_free_keyblock(context, key); break; } |