From e3698259afa79fcd318592b1d628803695406337 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 26 Nov 2001 09:28:00 +0000 Subject: [PATCH] increment the value not the pointer --- source/libsmb/namequery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libsmb/namequery.c b/source/libsmb/namequery.c index dff35708421..e9b1116d072 100644 --- a/source/libsmb/namequery.c +++ b/source/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);