summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2017-07-07 07:58:51 +0200
committerAndreas Schneider <asn@cryptomilk.org>2017-07-25 13:51:07 +0200
commit3866d559510396441895dcd82f7e61a27a814c59 (patch)
tree0921dd5d387d47545f92a77fe80c3d4f2c7eb66f /auth
parenteee973a6aee5c1298c1dfed12fced34f3deeaf85 (diff)
downloadsamba-3866d559510396441895dcd82f7e61a27a814c59.tar.gz
auth/spnego: make use of GENSEC_UPDATE_IS_NTERROR() in gensec_spnego_create_negTokenInit()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'auth')
-rw-r--r--auth/gensec/spnego.c3
1 files changed, 1 insertions, 2 deletions
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;