summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-02-04 02:31:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:32 -0500
commit5da52d3209f6b06a0bedb370b71e2cbe1b3a4c14 (patch)
tree4911210a419625f2b0be641718cde7739e6a693e
parent6357adc6ee8c4f574ebd7717eb0a6a688d26e42e (diff)
downloadsamba-5da52d3209f6b06a0bedb370b71e2cbe1b3a4c14.tar.gz
samba-5da52d3209f6b06a0bedb370b71e2cbe1b3a4c14.tar.bz2
samba-5da52d3209f6b06a0bedb370b71e2cbe1b3a4c14.zip
r5216: don't defend group names against incoming name registration requests
(This used to be commit c5f5e1d4012c9f4fd4ea78a4276e6766727a5494)
-rw-r--r--source4/nbt_server/defense.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/nbt_server/defense.c b/source4/nbt_server/defense.c
index 2e34aca1ee..e2095f22bd 100644
--- a/source4/nbt_server/defense.c
+++ b/source4/nbt_server/defense.c
@@ -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,