mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
r4491: don't dereference q1.out.sam unless we know it is not NULL
(This used to be commit 77e14c28584c5917f22672b304cb0f8e37e883fd)
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…
x
Reference in New Issue
Block a user