mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
r4491: don't dereference q1.out.sam unless we know it is not NULL
(This used to be commit 77e14c2858
)
This commit is contained in:
parent
4db9496bb4
commit
160ff29bc4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user