1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r24066: Fix memleak found by Volker. We don't leak keys now with MIT and Heimdal.

Guenther
This commit is contained in:
Günther Deschner 2007-07-27 09:22:43 +00:00 committed by Gerald (Jerry) Carter
parent ea5f53eac8
commit 7755ad750f

View File

@ -285,6 +285,7 @@ static krb5_error_code ads_secrets_verify_ticket(krb5_context context,
if (ret == KRB5KRB_AP_ERR_TKT_NYV || if (ret == KRB5KRB_AP_ERR_TKT_NYV ||
ret == KRB5KRB_AP_ERR_TKT_EXPIRED || ret == KRB5KRB_AP_ERR_TKT_EXPIRED ||
ret == KRB5KRB_AP_ERR_SKEW) { ret == KRB5KRB_AP_ERR_SKEW) {
krb5_free_keyblock(context, key);
break; break;
} }