mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
auth/spnego: add an early return for a hard error in gensec_spnego_parse_negTokenInit()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
1523a778e9
commit
32836a77b1
@ -320,6 +320,13 @@ static NTSTATUS gensec_spnego_parse_negTokenInit(struct gensec_security *gensec_
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (GENSEC_UPDATE_IS_NTERROR(nt_status)) {
|
||||||
|
DEBUG(1, ("SPNEGO(%s) NEG_TOKEN_INIT failed: %s\n",
|
||||||
|
spnego_state->sub_sec_security->ops->name,
|
||||||
|
nt_errstr(nt_status)));
|
||||||
|
return nt_status;
|
||||||
|
}
|
||||||
|
|
||||||
spnego_state->neg_oid = cur_sec->oid;
|
spnego_state->neg_oid = cur_sec->oid;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user