From: Andrew Bartlett Date: Sun, 15 May 2005 03:07:20 +0000 (+0000) Subject: r6792: Allow a mech to fail on the first pass at the packet, and still fall X-Git-Tag: samba-misc-tags/initial-v4-0-unstable~9281 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=9153d7306124d5e4ffc0467728210e2e2235059f r6792: Allow a mech to fail on the first pass at the packet, and still fall back to the other options. Andrew Bartlett --- diff --git a/source/auth/gensec/spnego.c b/source/auth/gensec/spnego.c index 4d9d1248073..3d9dbfb1e7f 100644 --- a/source/auth/gensec/spnego.c +++ b/source/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; }