mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
increment the value not the pointer
This commit is contained in:
parent
6a919bcf3d
commit
e3698259af
@ -1218,7 +1218,7 @@ BOOL get_dc_list(BOOL pdc_only, char *group, struct in_addr **ip_list, int *coun
|
||||
struct in_addr name_ip;
|
||||
if (resolve_name( name, &name_ip, 0x20) == False)
|
||||
continue;
|
||||
return_iplist[*count++] = name_ip;
|
||||
return_iplist[(*count)++] = name_ip;
|
||||
}
|
||||
*ip_list = return_iplist;
|
||||
return (*count != 0);
|
||||
|
Loading…
Reference in New Issue
Block a user