r11913: if we have a UNIQUE name with more than 1 address,
authorStefan Metzmacher <metze@samba.org>
Fri, 25 Nov 2005 15:36:47 +0000 (15:36 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:46:48 +0000 (13:46 -0500)
it becomes implicit an MHOMED record

metze

source/nbt_server/wins/winswack.c

index 793c0a3d8f7d21812d1b48eb4063ad94429d5cf1..40a4d7d76a4d4c982d0debc6f797855bbb2315f9 100644 (file)
@@ -81,6 +81,11 @@ static void wins_wack_allow(struct wack_state *state)
                                              rec->expire_time);
        if (rec->addresses == NULL) goto failed;
 
+       /* if we have more than one address, this becomes implicit a MHOMED record */
+       if (winsdb_addr_list_length(rec->addresses) > 1) {
+               rec->type = WREPL_TYPE_MHOMED;
+       }
+
        winsdb_modify(state->winssrv->wins_db, rec, WINSDB_FLAG_ALLOC_VERSION | WINSDB_FLAG_TAKE_OWNERSHIP);
 
        DEBUG(4,("WINS: accepted registration of %s with address %s\n",