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:
parent
ea5f53eac8
commit
7755ad750f
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user