From cde2a30d8eba86d330cc6f85ba6390e8f46f5e72 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 16 Feb 2006 20:50:41 +0000 Subject: r13530: Fix from William Jojo for #1970. Make nmblookup do a node status on all IP's when requested. Jeremy. (This used to be commit 1fcac478cb5ba432282612fbb785caaed4d2f9b8) --- source3/utils/nmblookup.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/source3/utils/nmblookup.c b/source3/utils/nmblookup.c index 12ac1beb7b..15f2eda392 100644 --- a/source3/utils/nmblookup.c +++ b/source3/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); -- cgit