mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
auth/ntlmssp: remove mem_ctx=NULL handling from gensec_ntlmssp_update()
The caller is expected always pass a valid context and this fallback was needed ages ago. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
650a81f7bb
commit
33a1bbaf1b
@ -168,12 +168,6 @@ NTSTATUS gensec_ntlmssp_update(struct gensec_security *gensec_security,
|
|||||||
|
|
||||||
*out = data_blob(NULL, 0);
|
*out = data_blob(NULL, 0);
|
||||||
|
|
||||||
if (!out_mem_ctx) {
|
|
||||||
/* if the caller doesn't want to manage/own the memory,
|
|
||||||
we can put it on our context */
|
|
||||||
out_mem_ctx = ntlmssp_state;
|
|
||||||
}
|
|
||||||
|
|
||||||
status = gensec_ntlmssp_update_find(gensec_security, gensec_ntlmssp, input, &i);
|
status = gensec_ntlmssp_update_find(gensec_security, gensec_ntlmssp, input, &i);
|
||||||
NT_STATUS_NOT_OK_RETURN(status);
|
NT_STATUS_NOT_OK_RETURN(status);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user