summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/auth_ntlmssp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/auth_ntlmssp.c b/source3/auth/auth_ntlmssp.c
index 75098409bd..e22db822ab 100644
--- a/source3/auth/auth_ntlmssp.c
+++ b/source3/auth/auth_ntlmssp.c
@@ -406,7 +406,7 @@ NTSTATUS auth_generic_start(struct auth_ntlmssp_state *auth_ntlmssp_state, const
talloc_get_type_abort(auth_ntlmssp_state->gensec_security->private_data,
struct gensec_ntlmssp_context);
- gensec_ntlmssp->auth_context = auth_ntlmssp_state->auth_context;
+ gensec_ntlmssp->auth_context = talloc_move(gensec_ntlmssp, &auth_ntlmssp_state->auth_context);
return NT_STATUS_OK;
}
@@ -464,7 +464,7 @@ NTSTATUS auth_generic_authtype_start(struct auth_ntlmssp_state *auth_ntlmssp_sta
talloc_get_type_abort(auth_ntlmssp_state->gensec_security->private_data,
struct gensec_ntlmssp_context);
- gensec_ntlmssp->auth_context = auth_ntlmssp_state->auth_context;
+ gensec_ntlmssp->auth_context = talloc_move(gensec_ntlmssp, &auth_ntlmssp_state->auth_context);
return NT_STATUS_OK;
}