auth/spnego: don't produce an output token for errors in gensec_spnego_server_response()
authorStefan Metzmacher <metze@samba.org>
Mon, 17 Jul 2017 20:00:10 +0000 (22:00 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 25 Jul 2017 11:51:11 +0000 (13:51 +0200)
gensec_spnego_server_response() is never called with a fatal error anymore.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
auth/gensec/spnego.c

index 474f0a9..aae3cab 100644 (file)
@@ -914,11 +914,6 @@ static NTSTATUS gensec_spnego_server_response(struct spnego_state *spnego_state,
                }
                spnego_out.negTokenTarg.negResult = SPNEGO_ACCEPT_COMPLETED;
                spnego_state->state_position = SPNEGO_DONE;
-       } else {
-               spnego_out.negTokenTarg.negResult = SPNEGO_REJECT;
-               spnego_out.negTokenTarg.mechListMIC = data_blob_null;
-               DEBUG(2, ("SPNEGO login failed: %s\n", nt_errstr(nt_status)));
-               spnego_state->state_position = SPNEGO_DONE;
        }
 
        if (spnego_write_data(out_mem_ctx, out, &spnego_out) == -1) {