From 5c7707ddcb6a00e36b8bbde1462e9d31c318792d Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 5 Dec 2005 12:18:16 +0000 Subject: r12070: make sure a unique record with multiple addresses becauses mhomed metze (This used to be commit 4be3b576f2926279686ecada52144b9df8165a03) --- source4/nbt_server/wins/winsdb.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4') diff --git a/source4/nbt_server/wins/winsdb.c b/source4/nbt_server/wins/winsdb.c index a81c3d55dc..d7df7994b8 100644 --- a/source4/nbt_server/wins/winsdb.c +++ b/source4/nbt_server/wins/winsdb.c @@ -521,6 +521,9 @@ struct ldb_message *winsdb_message(struct ldb_context *ldb, if (rec->state == WREPL_STATE_ACTIVE && addr_count == 0) { rec->state = WREPL_STATE_RELEASED; } + if (rec->type == WREPL_TYPE_UNIQUE && addr_count > 1) { + rec->type = WREPL_TYPE_MHOMED; + } msg->dn = winsdb_dn(msg, rec->name); if (msg->dn == NULL) goto failed; -- cgit