diff options
author | Gerald Carter <jerry@samba.org> | 2004-04-27 13:12:31 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2004-04-27 13:12:31 +0000 |
commit | 230ecf7ca3547201f790cd34d57e3a3f58c78109 (patch) | |
tree | 5f0db59e87795dc066805a720a0830e31fa912ef /source/nsswitch | |
parent | 38955ab74c62c4f44ea4998f3284bb1df92a971b (diff) | |
download | samba-230ecf7ca3547201f790cd34d57e3a3f58c78109.tar.gz samba-230ecf7ca3547201f790cd34d57e3a3f58c78109.tar.xz samba-230ecf7ca3547201f790cd34d57e3a3f58c78109.zip |
r376: BUG 1288: resolve any machine netbios name (0x00) and not just servers (0x20)
Diffstat (limited to 'source/nsswitch')
-rw-r--r-- | source/nsswitch/wins.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/nsswitch/wins.c b/source/nsswitch/wins.c index 88c65b767f5..b71995998f5 100644 --- a/source/nsswitch/wins.c +++ b/source/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; } |