s3:smbd Give the kerberos session key a parent
authorAndrew Bartlett <abartlet@samba.org>
Thu, 3 Jun 2010 11:15:33 +0000 (21:15 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 7 Jun 2010 13:34:28 +0000 (23:34 +1000)
I can't see what would free this, so this should prevent a memory leak.

Andrew Bartlett

source3/smbd/sesssetup.c

index 486b4d137fc92c57513ad783f6fd49f09039e2ee..d707ba3021c46be68b52f3413c86a9138177c001 100644 (file)
@@ -561,6 +561,8 @@ static void reply_spnego_kerberos(struct smb_request *req,
 
        data_blob_free(&server_info->user_session_key);
        server_info->user_session_key = session_key;
+       talloc_steal(server_info, session_key.data);
+
        session_key = data_blob_null;
 
        /* register_existing_vuid keeps the server info */