Dereference the correct thing here, so we don't segfault
authorAndrew Bartlett <abartlet@samba.org>
Sun, 1 Dec 2002 03:12:50 +0000 (03:12 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 1 Dec 2002 03:12:50 +0000 (03:12 +0000)
(This used to be commit ea18d02036b4e0502e5ecb057c9fe381709a07d8)

source3/libsmb/namequery.c

index 6a59b73db250afdf3f746bb5cd02a7fee99405f6..c781e98365ff85e92abfdab94ee5c24ba6afc86f 100644 (file)
@@ -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);