r14403: * modifies create_local_nt_token() to create a BUILTIN\Administrators
[tprouty/samba.git] / source3 / rpc_server / srv_lsa_nt.c
index 80c86a30798b3ab5d815b3f48747e09d270a2a61..7fe42efefb2272d154fa5f5521b755bd3511fe1b 100644 (file)
@@ -1071,7 +1071,7 @@ NTSTATUS _lsa_lookup_names(pipes_struct *p,LSA_Q_LOOKUP_NAMES *q_u, LSA_R_LOOKUP
 
 done:
 
-       if (NT_STATUS_IS_OK(r_u->status)) {
+       if (NT_STATUS_IS_OK(r_u->status) && (num_entries != 0) ) {
                if (mapped_count == 0)
                        r_u->status = NT_STATUS_NONE_MAPPED;
                else if (mapped_count != num_entries)