r5216: don't defend group names against incoming name registration requests
authorAndrew Tridgell <tridge@samba.org>
Fri, 4 Feb 2005 02:31:04 +0000 (02:31 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:09:32 +0000 (13:09 -0500)
(This used to be commit c5f5e1d4012c9f4fd4ea78a4276e6766727a5494)

source4/nbt_server/defense.c

index 2e34aca1ee3d2f521a8164e06fcee849a7e7c770..e2095f22bd6b5a450a1a822dff5670626033bc2b 100644 (file)
@@ -100,7 +100,7 @@ void nbtd_request_defense(struct nbt_name_socket *nbtsock,
        name = &packet->questions[0].name;
 
        iname = nbtd_find_iname(iface, name, NBT_NM_ACTIVE);
-       if (iname != NULL) {
+       if (iname != NULL && !(iname->nb_flags & NBT_NM_GROUP)) {
                DEBUG(2,("Defending name %s<%02x> on %s against %s\n",
                         name->name, name->type, iface->bcast_address, src_address));
                nbtd_name_defense_reply(nbtsock, packet, src_address, src_port,