mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r810: Fix from "Jerome Borsboom" <j.borsboom@erasmusmc.nl> to ensure error status
codes don't get overwritten.
Jeremy.
(This used to be commit c179451b07
)
This commit is contained in:
parent
74a81e6ba6
commit
331d4fc58c
@ -669,12 +669,12 @@ done:
|
||||
|
||||
/* set up the LSA Lookup SIDs response */
|
||||
init_lsa_trans_names(p->mem_ctx, ref, names, num_entries, sid, &mapped_count);
|
||||
if (mapped_count == 0)
|
||||
r_u->status = NT_STATUS_NONE_MAPPED;
|
||||
else if (mapped_count != num_entries)
|
||||
r_u->status = STATUS_SOME_UNMAPPED;
|
||||
else
|
||||
r_u->status = NT_STATUS_OK;
|
||||
if (NT_STATUS_IS_OK(r_u->status)) {
|
||||
if (mapped_count == 0)
|
||||
r_u->status = NT_STATUS_NONE_MAPPED;
|
||||
else if (mapped_count != num_entries)
|
||||
r_u->status = STATUS_SOME_UNMAPPED;
|
||||
}
|
||||
init_reply_lookup_sids(r_u, ref, names, mapped_count);
|
||||
|
||||
return r_u->status;
|
||||
|
Loading…
Reference in New Issue
Block a user