summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-01-02 23:36:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:12 -0500
commit160ff29bc4dae379fa00574b133316225670de58 (patch)
tree223a97d4f14b96ebd632da193d526a29a907e097 /source4/torture/rpc
parent4db9496bb41e4c05d0c1178b56b4da4e4d486697 (diff)
downloadsamba-160ff29bc4dae379fa00574b133316225670de58.tar.gz
samba-160ff29bc4dae379fa00574b133316225670de58.tar.bz2
samba-160ff29bc4dae379fa00574b133316225670de58.zip
r4491: don't dereference q1.out.sam unless we know it is not NULL
(This used to be commit 77e14c28584c5917f22672b304cb0f8e37e883fd)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/samr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c
index a599dabe15..ae62f94cb0 100644
--- a/source4/torture/rpc/samr.c
+++ b/source4/torture/rpc/samr.c
@@ -2562,7 +2562,7 @@ static BOOL test_GroupList(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
!NT_STATUS_EQUAL(status, STATUS_MORE_ENTRIES))
break;
- for (i=0; i<q1.out.sam->count; i++) {
+ for (i=0; i<q1.out.num_entries; i++) {
add_string_to_array(mem_ctx,
q1.out.sam->entries[i].name.string,
&names, &num_names);