auth3: Use NT_STATUS_EQUAL
authorVolker Lendecke <vl@samba.org>
Sat, 11 Feb 2017 09:38:21 +0000 (10:38 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 15 Feb 2017 01:28:16 +0000 (02:28 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/auth/auth.c

index 833eae9a7c210dfe15e9c31cf44ba88de79a55fd..50d0188046c0cf8175662c279a4fc44bbf5d457b 100644 (file)
@@ -229,7 +229,7 @@ NTSTATUS auth_check_ntlm_password(TALLOC_CTX *mem_ctx,
                                           &server_info);
 
                /* check if the module did anything */
-               if ( NT_STATUS_V(result) == NT_STATUS_V(NT_STATUS_NOT_IMPLEMENTED) ) {
+               if (NT_STATUS_EQUAL(result, NT_STATUS_NOT_IMPLEMENTED)) {
                        DEBUG(10,("check_ntlm_password: %s had nothing to say\n", auth_method->name));
                        TALLOC_FREE(tmp_ctx);
                        if (user_info->flags & USER_INFO_LOCAL_SAM_ONLY) {