svn commit: samba r12070 - in branches/SAMBA_4_0/source/nbt_server/wins: .

metze at samba.org metze at samba.org
Mon Dec 5 12:18:17 GMT 2005


Author: metze
Date: 2005-12-05 12:18:16 +0000 (Mon, 05 Dec 2005)
New Revision: 12070

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12070

Log:
make sure a unique record with multiple addresses becauses mhomed

metze
Modified:
   branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c


Changeset:
Modified: branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c
===================================================================
--- branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c	2005-12-05 10:24:07 UTC (rev 12069)
+++ branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c	2005-12-05 12:18:16 UTC (rev 12070)
@@ -521,6 +521,9 @@
 	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;



More information about the samba-cvs mailing list