mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
Fix segfault. krb5_free_ticket does not check if it got a NULL ticket.
This commit is contained in:
parent
deb2578087
commit
97e4778103
@ -239,7 +239,8 @@ NTSTATUS ads_verify_ticket(const char *realm, const DATA_BLOB *ticket,
|
||||
data_blob_free(ap_rep);
|
||||
|
||||
krb5_free_principal(context, host_princ);
|
||||
krb5_free_ticket(context, tkt);
|
||||
if (tkt != NULL)
|
||||
krb5_free_ticket(context, tkt);
|
||||
free_kerberos_etypes(context, enctypes);
|
||||
SAFE_FREE(password_s);
|
||||
SAFE_FREE(host_princ_s);
|
||||
|
Loading…
x
Reference in New Issue
Block a user