diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-02-04 01:55:50 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:09:31 -0500 |
commit | 9eb33fc21236942c4b518557be920d4208e6b168 (patch) | |
tree | 3b21825351052ea60adf067c673eceacabdc86d3 /source4/nbt_server/query.c | |
parent | bd22848ad80dbe10551129325a59114d9a612f91 (diff) | |
download | samba-9eb33fc21236942c4b518557be920d4208e6b168.tar.gz samba-9eb33fc21236942c4b518557be920d4208e6b168.tar.bz2 samba-9eb33fc21236942c4b518557be920d4208e6b168.zip |
r5211: added broadcast name defense against both registration and refresh
requests
(This used to be commit 9eafe2cacaef64384febe6bb0938294f7c1ee6bf)
Diffstat (limited to 'source4/nbt_server/query.c')
-rw-r--r-- | source4/nbt_server/query.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/source4/nbt_server/query.c b/source4/nbt_server/query.c index 911163f19e..bf2c75f2d1 100644 --- a/source4/nbt_server/query.c +++ b/source4/nbt_server/query.c @@ -93,13 +93,6 @@ void nbtd_request_query(struct nbt_name_socket *nbtsock, return; } - /* if its a WINS query then direct to our WINS server */ - if ((packet->operation & NBT_FLAG_RECURSION_DESIRED) && - !(packet->operation & NBT_FLAG_BROADCAST)) { - nbtd_query_wins(nbtsock, packet, src_address, src_port); - return; - } - NBT_ASSERT_PACKET(packet, src_address, packet->qdcount == 1); NBT_ASSERT_PACKET(packet, src_address, packet->questions[0].question_type == NBT_QTYPE_NETBIOS); NBT_ASSERT_PACKET(packet, src_address, packet->questions[0].question_class == NBT_QCLASS_IP); |