mirror of
https://github.com/samba-team/samba.git
synced 2025-01-17 02:05:21 +03:00
r17439: Fix logic error in checking TALLOC return. Spotted by Volker.
Jeremy. (This used to be commit 06aea05c52ee770a2dd6465e9e2fcd0ccd8c811d)
This commit is contained in:
parent
a8627a8576
commit
6cab0fbb8b
@ -1645,7 +1645,7 @@ NTSTATUS _samr_lookup_rids(pipes_struct *p, SAMR_Q_LOOKUP_RIDS *q_u, SAMR_R_LOOK
|
||||
attrs = TALLOC_ZERO_ARRAY(p->mem_ctx, enum SID_NAME_USE, num_rids);
|
||||
wire_attrs = TALLOC_ZERO_ARRAY(p->mem_ctx, uint32, num_rids);
|
||||
|
||||
if ((num_rids != 0) && ((names == NULL) || (attrs == NULL) || wire_attrs))
|
||||
if ((num_rids != 0) && ((names == NULL) || (attrs == NULL) || (wire_attrs==NULL)))
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
|
||||
become_root(); /* lookup_sid can require root privs */
|
||||
|
Loading…
x
Reference in New Issue
Block a user