summaryrefslogtreecommitdiff
path: root/source3/libsmb/namequery.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-12-01 03:12:50 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-12-01 03:12:50 +0000
commitf634f24cf8466b12b54e2b6b7d52adba174603dc (patch)
tree689d8e44c085c9ea33c7d002b822aebc5b2a9678 /source3/libsmb/namequery.c
parent969b569d84b0e9b147082ead68677f194d743e83 (diff)
downloadsamba-f634f24cf8466b12b54e2b6b7d52adba174603dc.tar.gz
samba-f634f24cf8466b12b54e2b6b7d52adba174603dc.tar.bz2
samba-f634f24cf8466b12b54e2b6b7d52adba174603dc.zip
Dereference the correct thing here, so we don't segfault
(This used to be commit ea18d02036b4e0502e5ecb057c9fe381709a07d8)
Diffstat (limited to 'source3/libsmb/namequery.c')
-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 6a59b73db2..c781e98365 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -913,7 +913,7 @@ static BOOL internal_resolve_name(const char *name, int name_type,
/* Save in name cache */
for (i = 0; i < *return_count && DEBUGLEVEL == 100; i++)
DEBUG(100, ("Storing name %s of type %d (ip: %s)\n", name,
- name_type, inet_ntoa(*return_iplist[i])));
+ name_type, inet_ntoa((*return_iplist)[i])));
namecache_store(name, name_type, *return_count, *return_iplist);