summaryrefslogtreecommitdiffstats
path: root/source/libsmb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-11-26 09:28:00 +0000
committerAndrew Tridgell <tridge@samba.org>2001-11-26 09:28:00 +0000
commite3698259afa79fcd318592b1d628803695406337 (patch)
tree1ec7748706acaf66b651237498aa0842cfe8c372 /source/libsmb
parent6a919bcf3d5848e09ddba1e8946f985661af8f67 (diff)
downloadsamba-e3698259afa79fcd318592b1d628803695406337.tar.gz
samba-e3698259afa79fcd318592b1d628803695406337.tar.xz
samba-e3698259afa79fcd318592b1d628803695406337.zip
increment the value not the pointer
Diffstat (limited to 'source/libsmb')
-rw-r--r--source/libsmb/namequery.c2
1 files changed, 1 insertions, 1 deletions
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);