summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-06-08 10:42:02 +1000
committerAndrew Tridgell <tridge@samba.org>2011-06-08 04:56:04 +0200
commite14538d9394fc5d21a5e3ec34574b9fb5c468ba2 (patch)
tree225a9d6c2a843e552cb9c9fb14c530377edd2124 /source4
parent79ef434b900288f23f352dcce083c37308baef2d (diff)
downloadsamba-e14538d9394fc5d21a5e3ec34574b9fb5c468ba2.tar.gz
samba-e14538d9394fc5d21a5e3ec34574b9fb5c468ba2.tar.bz2
samba-e14538d9394fc5d21a5e3ec34574b9fb5c468ba2.zip
s4-wins: ensure we only use IPv4 for WINS owner
Diffstat (limited to 'source4')
-rw-r--r--source4/nbt_server/wins/wins_ldb.c2
-rw-r--r--source4/nbt_server/wins/winsserver.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/nbt_server/wins/wins_ldb.c b/source4/nbt_server/wins/wins_ldb.c
index 6519f9e7f7..304c98d803 100644
--- a/source4/nbt_server/wins/wins_ldb.c
+++ b/source4/nbt_server/wins/wins_ldb.c
@@ -93,7 +93,7 @@ static int wins_ldb_init(struct ldb_module *module)
if (!owner) {
struct interface *ifaces;
load_interface_list(module, lp_ctx, &ifaces);
- owner = iface_list_n_ip(ifaces, 0);
+ owner = iface_list_first_v4(ifaces);
if (!owner) {
owner = "0.0.0.0";
}
diff --git a/source4/nbt_server/wins/winsserver.c b/source4/nbt_server/wins/winsserver.c
index 604c86ea5d..5f1f41747f 100644
--- a/source4/nbt_server/wins/winsserver.c
+++ b/source4/nbt_server/wins/winsserver.c
@@ -1058,7 +1058,7 @@ NTSTATUS nbtd_winsserver_init(struct nbtd_server *nbtsrv)
if (owner == NULL) {
struct interface *ifaces;
load_interface_list(nbtsrv->task, nbtsrv->task->lp_ctx, &ifaces);
- owner = iface_list_n_ip(ifaces, 0);
+ owner = iface_list_first_v4(ifaces);
}
nbtsrv->winssrv->wins_db = winsdb_connect(nbtsrv->winssrv, nbtsrv->task->event_ctx,