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>
Thu, 3 Jun 2010 12:34:22 +0000 (22:34 +1000)
I can't see what would free this, so this should prevent a memory leak.

Andrew Bartlett

source3/smbd/sesssetup.c

index 2cf32c9b9a409cac2a7e9e5edbc7ffc4f22155be..28e5aea39bea818c62e3ba2227dac5ec6f250af1 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 */