From dee845eb70379feae89940e9535541f7957c60d9 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 2 Aug 2011 10:24:28 +1000 Subject: s3-ntlmssp Add mem_ctx argument to auth_ntlmssp_get_session_key() --- source3/libsmb/ntlmssp_wrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/libsmb') diff --git a/source3/libsmb/ntlmssp_wrap.c b/source3/libsmb/ntlmssp_wrap.c index 00aede9ee9..de883dd8cb 100644 --- a/source3/libsmb/ntlmssp_wrap.c +++ b/source3/libsmb/ntlmssp_wrap.c @@ -132,9 +132,9 @@ void auth_ntlmssp_want_feature(struct auth_ntlmssp_state *ans, uint32_t feature) ntlmssp_want_feature(ans->ntlmssp_state, feature); } -DATA_BLOB auth_ntlmssp_get_session_key(struct auth_ntlmssp_state *ans) +DATA_BLOB auth_ntlmssp_get_session_key(struct auth_ntlmssp_state *ans, TALLOC_CTX *mem_ctx) { - return ans->ntlmssp_state->session_key; + return data_blob_talloc(mem_ctx, ans->ntlmssp_state->session_key.data, ans->ntlmssp_state->session_key.length); } NTSTATUS auth_ntlmssp_update(struct auth_ntlmssp_state *ans, -- cgit