summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-14 16:45:24 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-14 16:45:24 +0000
commitbc747b8a077d22344aa03bbba202f5137b59284d (patch)
treee37c5ae1cc7cf690f4c945576d100e5e6acdef4d /source3/utils
parentec32176198cf8306b9543f23bd145b11fb23c1c8 (diff)
downloadsamba-bc747b8a077d22344aa03bbba202f5137b59284d.tar.gz
samba-bc747b8a077d22344aa03bbba202f5137b59284d.tar.bz2
samba-bc747b8a077d22344aa03bbba202f5137b59284d.zip
set recursion desired for bcast name query
(This used to be commit 53805112f1a301f77cda93b68e6fa3054895f20f)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/nmblookup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/nmblookup.c b/source3/utils/nmblookup.c
index 477d6590f0..971715f327 100644
--- a/source3/utils/nmblookup.c
+++ b/source3/utils/nmblookup.c
@@ -218,7 +218,8 @@ int main(int argc,char *argv[])
sscanf(p+1,"%x",&lookup_type);
}
- if ((ip_list = name_query(ServerFD,lookup,lookup_type,use_bcast,recursion_desired,
+ if ((ip_list = name_query(ServerFD,lookup,lookup_type,use_bcast,
+ use_bcast?True:recursion_desired,
bcast_addr,&count,NULL))) {
for (j=0;j<count;j++)
printf("%s %s<%02x>\n",inet_ntoa(ip_list[j]),lookup, lookup_type);