summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-04-27 13:12:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:20 -0500
commit43fb4632c6903abbcbcad371fec45c7f40c83e0e (patch)
treea251e0ed67a4534c8a29fefa991ac7dbb52077e7 /source3
parentf789481101d38de5376254e62735891c17fbf07b (diff)
downloadsamba-43fb4632c6903abbcbcad371fec45c7f40c83e0e.tar.gz
samba-43fb4632c6903abbcbcad371fec45c7f40c83e0e.tar.bz2
samba-43fb4632c6903abbcbcad371fec45c7f40c83e0e.zip
r376: BUG 1288: resolve any machine netbios name (0x00) and not just servers (0x20)
(This used to be commit d96929b5b1d8d149ac023a30964925952587c258)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/wins.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/nsswitch/wins.c b/source3/nsswitch/wins.c
index 88c65b767f..b71995998f 100644
--- a/source3/nsswitch/wins.c
+++ b/source3/nsswitch/wins.c
@@ -100,7 +100,7 @@ static struct in_addr *lookup_byname_backend(const char *name, int *count)
*count = 0;
/* always try with wins first */
- if (resolve_wins(name,0x20,&address,count)) {
+ if (resolve_wins(name,0x00,&address,count)) {
if ( (ret = (struct in_addr *)malloc(sizeof(struct in_addr))) == NULL ) {
free( address );
return NULL;
@@ -118,7 +118,7 @@ static struct in_addr *lookup_byname_backend(const char *name, int *count)
/* uggh, we have to broadcast to each interface in turn */
for (j=iface_count() - 1;j >= 0;j--) {
struct in_addr *bcast = iface_n_bcast(j);
- ret = name_query(fd,name,0x20,True,True,*bcast,count, &flags, NULL);
+ ret = name_query(fd,name,0x00,True,True,*bcast,count, &flags, NULL);
if (ret) break;
}