summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libsmb/namequery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index dff3570842..e9b1116d07 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -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);