From f474b7fb4e24b790a64178b044e6a8f7caab9a95 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 25 Aug 2003 09:13:54 +0000 Subject: Fix memleak. (This used to be commit afbf15f94189f50cd447d9bcdebbc4886800b05a) --- source3/smbd/sesssetup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); -- cgit