r5171: added support for "bind interfaces only" in nbtd. The solution was to
[samba.git] / source4 / nbt_server / nodestatus.c
index f57c86d10f8ffa81cd5af28189cf6b84196fee88..36c37073741659af92783c27e91c324a6b93c222 100644 (file)
@@ -99,12 +99,10 @@ void nbt_query_status(struct nbt_name_socket *nbtsock,
                      struct nbt_name_packet *packet, 
                      const char *src_address, int src_port)
 {
-       struct nbt_interface *iface;
        struct nbt_name *name;
        struct nbt_iface_name *iname;
-
-       /* find the interface for this query */
-       iface = nbt_iface_find(nbtsock, src_address);
+       struct nbt_interface *iface = talloc_get_type(nbtsock->incoming.private, 
+                                                     struct nbt_interface);
 
        NBT_ASSERT_PACKET(packet, src_address, packet->qdcount == 1);
        NBT_ASSERT_PACKET(packet, src_address, packet->questions[0].question_type == NBT_QTYPE_STATUS);