summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-08-07 15:41:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:33 -0500
commit6cab0fbb8b8bc1aadbc4c76d9759983eeb18b9fb (patch)
treed81fb24b0f0ad1c17d4d9611266e7d42a66d2d00 /source3/rpc_server
parenta8627a857630033cca700916d90456c837726ff4 (diff)
downloadsamba-6cab0fbb8b8bc1aadbc4c76d9759983eeb18b9fb.tar.gz
samba-6cab0fbb8b8bc1aadbc4c76d9759983eeb18b9fb.tar.bz2
samba-6cab0fbb8b8bc1aadbc4c76d9759983eeb18b9fb.zip
r17439: Fix logic error in checking TALLOC return. Spotted by Volker.
Jeremy. (This used to be commit 06aea05c52ee770a2dd6465e9e2fcd0ccd8c811d)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_samr_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index ec3630ec26..31e434cbfb 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -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 */