auth/spnego: do an early return when we downgraded the mech in gensec_spnego_parse_ne...
authorStefan Metzmacher <metze@samba.org>
Fri, 7 Jul 2017 09:05:39 +0000 (11:05 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 25 Jul 2017 11:51:09 +0000 (13:51 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
auth/gensec/spnego.c

index 9543494d8c3a4920e6a0996b9a9f705772775bfb..1e1fd873f699c99de32ec322cb99cd23b44e1daf 100644 (file)
@@ -296,7 +296,7 @@ static NTSTATUS gensec_spnego_parse_negTokenInit(struct gensec_security *gensec_
                         */
                        spnego_state->downgraded = true;
                        spnego_state->mic_requested = true;
-                       break;
+                       return nt_status;
                }
 
                nt_status = gensec_update_ev(spnego_state->sub_sec_security,