1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-29 13:49:30 +03:00

r17439: Fix logic error in checking TALLOC return. Spotted by Volker.

Jeremy.
(This used to be commit 06aea05c52)
This commit is contained in:
Jeremy Allison
2006-08-07 15:41:43 +00:00
committed by Gerald (Jerry) Carter
parent a8627a8576
commit 6cab0fbb8b

View File

@ -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); attrs = TALLOC_ZERO_ARRAY(p->mem_ctx, enum SID_NAME_USE, num_rids);
wire_attrs = TALLOC_ZERO_ARRAY(p->mem_ctx, uint32, 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; return NT_STATUS_NO_MEMORY;
become_root(); /* lookup_sid can require root privs */ become_root(); /* lookup_sid can require root privs */