s3/rpc_client: use NT_STATUS_LOOKUP_ERR
authorRalph Boehme <slow@samba.org>
Sat, 1 Apr 2017 14:56:39 +0000 (16:56 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 7 Apr 2017 20:52:24 +0000 (22:52 +0200)
No change in behaviour.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12728

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_client/cli_lsarpc.c

index 518489a64a89f4d6fbc722f5cac4e1b80b496432..70952f62bab648c0b0b9738fb53cf4377b4596cb 100644 (file)
@@ -256,10 +256,7 @@ static NTSTATUS dcerpc_lsa_lookup_sids_noalloc(struct dcerpc_binding_handle *h,
                return status;
        }
 
-       if (!NT_STATUS_IS_OK(result) &&
-           !NT_STATUS_EQUAL(result, NT_STATUS_NONE_MAPPED) &&
-           !NT_STATUS_EQUAL(result, STATUS_SOME_UNMAPPED))
-       {
+       if (NT_STATUS_LOOKUP_ERR(result)) {
                *presult = result;
                return status;
        }