summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-05-15 03:07:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:16:43 -0500
commitc0c1b26a76ba436f1169f88cefdcf54b8c3d8ece (patch)
tree60e2cd95734af29c78bb5e7ecd77f164916d631a /source4
parent4f9fa5a81dec8a4ac37f199c2030480d26f785d7 (diff)
downloadsamba-c0c1b26a76ba436f1169f88cefdcf54b8c3d8ece.tar.gz
samba-c0c1b26a76ba436f1169f88cefdcf54b8c3d8ece.tar.bz2
samba-c0c1b26a76ba436f1169f88cefdcf54b8c3d8ece.zip
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)
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/gensec/spnego.c2
1 files changed, 2 insertions, 0 deletions
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;
}