From 3866d559510396441895dcd82f7e61a27a814c59 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 7 Jul 2017 07:58:51 +0200 Subject: auth/spnego: make use of GENSEC_UPDATE_IS_NTERROR() in gensec_spnego_create_negTokenInit() Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- auth/gensec/spnego.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'auth/gensec') 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; -- cgit v1.2.1