summaryrefslogtreecommitdiff
path: root/source/utils/nmblookup.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-02-16 20:50:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:10 -0500
commit1fcac478cb5ba432282612fbb785caaed4d2f9b8 (patch)
treeb35cce96c1513f43b424b2ad30fe9bd1f5625a2f /source/utils/nmblookup.c
parent7716c697291246f427c60a0aa20d861929feb87c (diff)
downloadsamba-1fcac478cb5ba432282612fbb785caaed4d2f9b8.tar.gz
r13530: Fix from William Jojo for #1970. Make nmblookup do
a node status on all IP's when requested. Jeremy.
Diffstat (limited to 'source/utils/nmblookup.c')
-rw-r--r--source/utils/nmblookup.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/source/utils/nmblookup.c b/source/utils/nmblookup.c
index 12ac1beb7b1..15f2eda3921 100644
--- a/source/utils/nmblookup.c
+++ b/source/utils/nmblookup.c
@@ -169,13 +169,12 @@ static BOOL query_one(const char *lookup, unsigned int lookup_type)
}
}
d_printf("%s %s<%02x>\n",inet_ntoa(ip_list[j]),lookup, lookup_type);
- }
-
- /* We can only do find_status if the ip address returned
- was valid - ie. name_query returned true.
- */
- if (find_status) {
- do_node_status(ServerFD, lookup, lookup_type, ip_list[0]);
+ /* We can only do find_status if the ip address returned
+ was valid - ie. name_query returned true.
+ */
+ if (find_status) {
+ do_node_status(ServerFD, lookup, lookup_type, ip_list[j]);
+ }
}
safe_free(ip_list);