auth/spnego: make use of GENSEC_UPDATE_IS_NTERROR() in gensec_spnego_create_negTokenI...
authorStefan Metzmacher <metze@samba.org>
Fri, 7 Jul 2017 05:58:51 +0000 (07:58 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 25 Jul 2017 11:51:07 +0000 (13:51 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
auth/gensec/spnego.c

index fe819ad749f616bb4425ab24c2841af246fca9d5..0e7f751defe1b8154844e30f27e091b4c2887efe 100644 (file)
@@ -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;