diff options
author | Stefan Metzmacher <metze@samba.org> | 2017-07-07 08:00:00 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2017-07-25 13:51:07 +0200 |
commit | ce6c80ab0dac167f554d021f02166005a0ca95bb (patch) | |
tree | 1244d5ea9eafbd037ad921ec8033bb4d14cd0d6c /auth/gensec/spnego.c | |
parent | 3866d559510396441895dcd82f7e61a27a814c59 (diff) | |
download | samba-ce6c80ab0dac167f554d021f02166005a0ca95bb.tar.gz |
auth/spnego: make use of GENSEC_UPDATE_IS_NTERROR() in gensec_spnego_update_client()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'auth/gensec/spnego.c')
-rw-r--r-- | auth/gensec/spnego.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/auth/gensec/spnego.c b/auth/gensec/spnego.c index 0e7f751defe..29f0b01a3af 100644 --- a/auth/gensec/spnego.c +++ b/auth/gensec/spnego.c @@ -672,7 +672,7 @@ static NTSTATUS gensec_spnego_update_client(struct gensec_security *gensec_secur spnego_in, &unwrapped_out); - if (!NT_STATUS_EQUAL(nt_status, NT_STATUS_MORE_PROCESSING_REQUIRED) && !NT_STATUS_IS_OK(nt_status)) { + if (GENSEC_UPDATE_IS_NTERROR(nt_status)) { return nt_status; } @@ -959,8 +959,7 @@ static NTSTATUS gensec_spnego_update_client(struct gensec_security *gensec_secur } client_response: - if (!NT_STATUS_EQUAL(nt_status, NT_STATUS_MORE_PROCESSING_REQUIRED) - && !NT_STATUS_IS_OK(nt_status)) { + if (GENSEC_UPDATE_IS_NTERROR(nt_status)) { DEBUG(1, ("SPNEGO(%s) login failed: %s\n", spnego_state->sub_sec_security->ops->name, nt_errstr(nt_status))); |