git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9286235
)
r12070: make sure a unique record with multiple addresses becauses mhomed
author
Stefan Metzmacher
<metze@samba.org>
Mon, 5 Dec 2005 12:18:16 +0000
(12:18 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:47:05 +0000
(13:47 -0500)
metze
(This used to be commit
4be3b576f2926279686ecada52144b9df8165a03
)
source4/nbt_server/wins/winsdb.c
patch
|
blob
|
history
diff --git
a/source4/nbt_server/wins/winsdb.c
b/source4/nbt_server/wins/winsdb.c
index a81c3d55dcac4dfdd1f17eeb0d4ba8aa9d46252d..d7df7994b89104ff49b0b5af494a92f1c65f35f1 100644
(file)
--- 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;