1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r9420: Fix the SPNEGO system again: Update the state position after

processing the state.

Andrew Bartlett
(This used to be commit c3a8080a18)
This commit is contained in:
Andrew Bartlett 2005-08-20 07:31:29 +00:00 committed by Gerald (Jerry) Carter
parent 1ba76ee8ba
commit 6baa6e0aa8

View File

@ -596,9 +596,10 @@ static NTSTATUS gensec_spnego_update(struct gensec_security *gensec_security, TA
return nt_status;
} else {
spnego_state->state_position = SPNEGO_SERVER_TARG;
return gensec_spnego_create_negTokenInit(gensec_security, spnego_state,
nt_status = gensec_spnego_create_negTokenInit(gensec_security, spnego_state,
out_mem_ctx, in, out);
spnego_state->state_position = SPNEGO_SERVER_TARG;
return nt_status;
}
}
@ -611,9 +612,10 @@ static NTSTATUS gensec_spnego_update(struct gensec_security *gensec_security, TA
if (!in.length) {
/* client to produce negTokenInit */
spnego_state->state_position = SPNEGO_CLIENT_TARG;
return gensec_spnego_create_negTokenInit(gensec_security, spnego_state,
nt_status = gensec_spnego_create_negTokenInit(gensec_security, spnego_state,
out_mem_ctx, in, out);
spnego_state->state_position = SPNEGO_CLIENT_TARG;
return nt_status;
}
len = spnego_read_data(in, &spnego);