summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/gensec/spnego.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source4/auth/gensec/spnego.c b/source4/auth/gensec/spnego.c
index f5363467e8..ab18cbc1b4 100644
--- a/source4/auth/gensec/spnego.c
+++ b/source4/auth/gensec/spnego.c
@@ -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);