aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dns/request_node.c
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-11-25 16:43:13 +0100
committerDamjan Marion <dmarion@me.com>2020-11-25 18:59:22 +0000
commit7483a7272d15354486371be7a20c4bf35ab2eb38 (patch)
tree6d76582674897441bc7d3aa30c5bc8f7a779f3a9 /src/plugins/dns/request_node.c
parent0a2fde105a5a0c996333d67d2901b4eaedf7cbe1 (diff)
dns: use correct per-thread vlib_main
Using vlib_main of another thread is prohibited. Type: fix Change-Id: I7ae294dfaf2526738e91408c9b4865ef9f801b8a Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/plugins/dns/request_node.c')
-rw-r--r--src/plugins/dns/request_node.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/dns/request_node.c b/src/plugins/dns/request_node.c
index d26e579cf47..a80876927e9 100644
--- a/src/plugins/dns/request_node.c
+++ b/src/plugins/dns/request_node.c
@@ -242,14 +242,14 @@ dns46_request_inline (vlib_main_t * vm,
clib_memcpy_fast (t0->dst_address, ip40->src_address.as_u8,
sizeof (ip4_address_t));
- vnet_dns_resolve_name (dm, name0, t0, &ep0);
+ vnet_dns_resolve_name (vm, dm, name0, t0, &ep0);
if (ep0)
{
if (is_ip6)
- vnet_send_dns6_reply (dm, t0, ep0, b0);
+ vnet_send_dns6_reply (vm, dm, t0, ep0, b0);
else
- vnet_send_dns4_reply (dm, t0, ep0, b0);
+ vnet_send_dns4_reply (vm, dm, t0, ep0, b0);
next0 = DNS46_REQUEST_NEXT_IP_LOOKUP;
}
else