From: Stefan Metzmacher Date: Fri, 7 Jul 2017 05:58:51 +0000 (+0200) Subject: auth/spnego: make use of GENSEC_UPDATE_IS_NTERROR() in gensec_spnego_create_negTokenI... X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=3866d559510396441895dcd82f7e61a27a814c59;p=amitay%2Fsamba.git auth/spnego: make use of GENSEC_UPDATE_IS_NTERROR() in gensec_spnego_create_negTokenInit() Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- diff --git a/auth/gensec/spnego.c b/auth/gensec/spnego.c index fe819ad749f..0e7f751defe 100644 --- a/auth/gensec/spnego.c +++ b/auth/gensec/spnego.c @@ -491,8 +491,7 @@ static NTSTATUS gensec_spnego_create_negTokenInit(struct gensec_security *gensec spnego_state->sub_sec_ready = true; } - if (!NT_STATUS_EQUAL(nt_status, NT_STATUS_MORE_PROCESSING_REQUIRED) - && !NT_STATUS_IS_OK(nt_status)) { + if (GENSEC_UPDATE_IS_NTERROR(nt_status)) { const char *next = NULL; const char *principal = NULL; int dbg_level = DBGLVL_WARNING;