diff options
Diffstat (limited to 'source4/nbt_server/nodestatus.c')
-rw-r--r-- | source4/nbt_server/nodestatus.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/nbt_server/nodestatus.c b/source4/nbt_server/nodestatus.c index f57c86d10f..36c3707374 100644 --- a/source4/nbt_server/nodestatus.c +++ b/source4/nbt_server/nodestatus.c @@ -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); |