summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-08-25 09:13:54 +0000
committerVolker Lendecke <vlendec@samba.org>2003-08-25 09:13:54 +0000
commitf474b7fb4e24b790a64178b044e6a8f7caab9a95 (patch)
treeb54bfda6a7829dc388cd537525e440a07688fb5b
parent51dfb55b8a95453e21a9e4a18f56843a27cdf267 (diff)
downloadsamba-f474b7fb4e24b790a64178b044e6a8f7caab9a95.tar.gz
samba-f474b7fb4e24b790a64178b044e6a8f7caab9a95.tar.bz2
samba-f474b7fb4e24b790a64178b044e6a8f7caab9a95.zip
Fix memleak.
(This used to be commit afbf15f94189f50cd447d9bcdebbc4886800b05a)
-rw-r--r--source3/smbd/sesssetup.c4
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));