From c0c1b26a76ba436f1169f88cefdcf54b8c3d8ece Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 15 May 2005 03:07:20 +0000 Subject: r6792: Allow a mech to fail on the first pass at the packet, and still fall back to the other options. Andrew Bartlett (This used to be commit 9153d7306124d5e4ffc0467728210e2e2235059f) --- source4/auth/gensec/spnego.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/auth/gensec/spnego.c') diff --git a/source4/auth/gensec/spnego.c b/source4/auth/gensec/spnego.c index 4d9d124807..3d9dbfb1e7 100644 --- a/source4/auth/gensec/spnego.c +++ b/source4/auth/gensec/spnego.c @@ -382,6 +382,8 @@ static NTSTATUS gensec_spnego_client_parse_negTokenInit(struct gensec_security * spnego_state->sub_sec_security->ops->name, nt_errstr(nt_status))); talloc_free(spnego_state->sub_sec_security); spnego_state->sub_sec_security = NULL; + /* If the mech failed on first packet generation, pretend it never actually started */ + continue; } return nt_status; } -- cgit