mirror of
https://github.com/samba-team/samba.git
synced 2025-01-21 18:04:06 +03:00
auth/spnego: fix gensec_update_ev() argument order for the SPNEGO_FALLBACK case
This went unnoticed so long as we don't use -Wc++-compat and gensec_update_ev() used the sync update() hook for all NTLMSSP and Kerberos. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12788 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from commit 31691963b3d9ac460df0c56d36f81ec815db0225)
This commit is contained in:
parent
545b0c420d
commit
d2bf63c93f
@ -366,7 +366,7 @@ static NTSTATUS gensec_spnego_server_try_fallback(struct gensec_security *gensec
|
||||
return nt_status;
|
||||
}
|
||||
nt_status = gensec_update_ev(spnego_state->sub_sec_security,
|
||||
ev, out_mem_ctx, in, out);
|
||||
out_mem_ctx, ev, in, out);
|
||||
return nt_status;
|
||||
}
|
||||
DEBUG(1, ("Failed to parse SPNEGO request\n"));
|
||||
@ -804,8 +804,8 @@ static NTSTATUS gensec_spnego_update(struct gensec_security *gensec_security, TA
|
||||
|
||||
switch (spnego_state->state_position) {
|
||||
case SPNEGO_FALLBACK:
|
||||
return gensec_update_ev(spnego_state->sub_sec_security, ev,
|
||||
out_mem_ctx, in, out);
|
||||
return gensec_update_ev(spnego_state->sub_sec_security,
|
||||
out_mem_ctx, ev, in, out);
|
||||
case SPNEGO_SERVER_START:
|
||||
{
|
||||
NTSTATUS nt_status;
|
||||
|
Loading…
x
Reference in New Issue
Block a user