diff options
author | Volker Lendecke <vlendec@samba.org> | 2003-08-25 09:13:54 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2003-08-25 09:13:54 +0000 |
commit | f474b7fb4e24b790a64178b044e6a8f7caab9a95 (patch) | |
tree | b54bfda6a7829dc388cd537525e440a07688fb5b /source3/smbd | |
parent | 51dfb55b8a95453e21a9e4a18f56843a27cdf267 (diff) | |
download | samba-f474b7fb4e24b790a64178b044e6a8f7caab9a95.tar.gz samba-f474b7fb4e24b790a64178b044e6a8f7caab9a95.tar.bz2 samba-f474b7fb4e24b790a64178b044e6a8f7caab9a95.zip |
Fix memleak.
(This used to be commit afbf15f94189f50cd447d9bcdebbc4886800b05a)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/sesssetup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index e7fc6254e5..427caa3ba1 100644 --- a/source3/smbd/sesssetup.c +++ b/source3/smbd/sesssetup.c @@ -165,13 +165,15 @@ static int reply_spnego_kerberos(connection_struct *conn, } ret = ads_verify_ticket(lp_realm(), &ticket, &client, &auth_data, &ap_rep, session_key); + + data_blob_free(&ticket); + if (!NT_STATUS_IS_OK(ret)) { DEBUG(1,("Failed to verify incoming ticket!\n")); return ERROR_NT(NT_STATUS_LOGON_FAILURE); } data_blob_free(&auth_data); - data_blob_free(&ticket); DEBUG(3,("Ticket name is [%s]\n", client)); |