diff options
author | Benoît Ganne <bganne@cisco.com> | 2020-11-25 13:53:21 +0100 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2020-11-25 17:55:06 +0000 |
commit | c646d54b46efbe1277adb440bba2b61c9d1c8c80 (patch) | |
tree | 5db6b0a9b0eda3909c3a9aa0a43636212dc442ca /src/plugins | |
parent | a6a5031e78f58684ad6d210a6acb9d46b990402b (diff) |
dns: fix double-unlock
dns cache should no longer be unlocked by caller.
Type: fix
Fixes: 84a563ae4050cc0389dcd438fbe9ea882f2b8404
Change-Id: I3708718ae8f00e4e4f4e04381caa0095c8494b82
Signed-off-by: Benoît Ganne <bganne@cisco.com>
(cherry picked from commit 2113c7f28b154df16af3637f67484971759a00a7)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/dns/dns.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/plugins/dns/dns.c b/src/plugins/dns/dns.c index bdf14961a78..66cc4f64f48 100644 --- a/src/plugins/dns/dns.c +++ b/src/plugins/dns/dns.c @@ -1471,12 +1471,6 @@ vl_api_dns_resolve_name_t_handler (vl_api_dns_resolve_name_t * mp) rmp->retval = clib_host_to_net_u32 (rv); })); /* *INDENT-ON* */ - - /* - * dns_resolve_name leaves the cache locked when it returns - * a cached result, so unlock it here. - */ - dns_cache_unlock (dm); } static void @@ -1551,12 +1545,6 @@ vl_api_dns_resolve_ip_t_handler (vl_api_dns_resolve_ip_t * mp) rmp->retval = clib_host_to_net_u32 (rv); })); /* *INDENT-ON* */ - - /* - * vnet_dns_resolve_name leaves the cache locked when it returns - * a cached result, so unlock it here. - */ - dns_cache_unlock (dm); } static clib_error_t * |