From e14538d9394fc5d21a5e3ec34574b9fb5c468ba2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 8 Jun 2011 10:42:02 +1000 Subject: s4-wins: ensure we only use IPv4 for WINS owner --- source4/nbt_server/wins/wins_ldb.c | 2 +- source4/nbt_server/wins/winsserver.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/nbt_server') 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, -- cgit