s3/rpc_client: use NT_STATUS_LOOKUP_ERR
authorRalph Boehme <slow@samba.org>
Sat, 1 Apr 2017 14:56:39 +0000 (16:56 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 20 Apr 2017 10:26:11 +0000 (12:26 +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>
(cherry picked from commit 0e7e4ebad31caa1ccb392f2fe20c67929149b8c9)

source3/rpc_client/cli_lsarpc.c

index f50a5e92d03676c589f052c92df3b9c89c71a180..cfa1f4affcbbcd99902c7085ba7de875d434b65f 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;
        }