summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/wins.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/nsswitch/wins.c b/source3/nsswitch/wins.c
index 8e4d75e545..9502a5d17e 100644
--- a/source3/nsswitch/wins.c
+++ b/source3/nsswitch/wins.c
@@ -120,7 +120,10 @@ 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);
+ const struct in_addr *bcast = iface_n_bcast_v4(j);
+ if (!bcast) {
+ continue;
+ }
ret = name_query(fd,name,0x00,True,True,*bcast,count, &flags, NULL);
if (ret) break;
}