diff options
author | Volker Lendecke <vlendec@samba.org> | 2003-08-25 09:13:20 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2003-08-25 09:13:20 +0000 |
commit | 51dfb55b8a95453e21a9e4a18f56843a27cdf267 (patch) | |
tree | 84f07251477d6be2540f2980d1ed3cae34ccea5f /source3 | |
parent | 983b4e7011174961748eb5d3011ec59b25d0917e (diff) | |
download | samba-51dfb55b8a95453e21a9e4a18f56843a27cdf267.tar.gz samba-51dfb55b8a95453e21a9e4a18f56843a27cdf267.tar.bz2 samba-51dfb55b8a95453e21a9e4a18f56843a27cdf267.zip |
Fix segfault. krb5_free_ticket does not check if it got a NULL ticket.
(This used to be commit 97e4778103744419ecaeb0058460041ef01b2e2a)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libads/kerberos_verify.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libads/kerberos_verify.c b/source3/libads/kerberos_verify.c index 3343194203..4bd20a3639 100644 --- a/source3/libads/kerberos_verify.c +++ b/source3/libads/kerberos_verify.c @@ -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); |