summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-12-05 12:18:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:47:05 -0500
commit5c7707ddcb6a00e36b8bbde1462e9d31c318792d (patch)
tree2c5232a9f7f26719ef149b175d965a4b974b8c02 /source4
parent9286235cf8117bbde7e4c53fbc91373d0c3f4039 (diff)
downloadsamba-5c7707ddcb6a00e36b8bbde1462e9d31c318792d.tar.gz
samba-5c7707ddcb6a00e36b8bbde1462e9d31c318792d.tar.bz2
samba-5c7707ddcb6a00e36b8bbde1462e9d31c318792d.zip
r12070: make sure a unique record with multiple addresses becauses mhomed
metze (This used to be commit 4be3b576f2926279686ecada52144b9df8165a03)
Diffstat (limited to 'source4')
-rw-r--r--source4/nbt_server/wins/winsdb.c3
1 files changed, 3 insertions, 0 deletions
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;