From: Volker Lendecke Date: Sat, 10 May 2008 22:23:01 +0000 (+0200) Subject: Fix a memleak in new auth_serversupplied code X-Git-Tag: samba-4.0.0alpha6~801^2~1399 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b6bb484a8049c5acf88b94f9106e40d96bf56ae;p=thirdparty%2Fsamba.git Fix a memleak in new auth_serversupplied code (This used to be commit f23e970848b6e6655453fa65f6f160f624acfcff) --- diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index 7cff4225079..5b004031401 100644 --- a/source3/smbd/sesssetup.c +++ b/source3/smbd/sesssetup.c @@ -652,7 +652,8 @@ static void reply_spnego_ntlmssp(struct smb_request *req, data_blob_free(&server_info->user_session_key); server_info->user_session_key = - data_blob( + data_blob_talloc( + server_info, (*auth_ntlmssp_state)->ntlmssp_state->session_key.data, (*auth_ntlmssp_state)->ntlmssp_state->session_key.length);