aboutsummaryrefslogtreecommitdiffstats
path: root/epan/addr_resolv.c
diff options
context:
space:
mode:
authorUli Heilmeier <uh@heilmeier.eu>2016-04-25 16:11:14 +0200
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2016-04-25 16:28:17 +0000
commit83924c867d10686b2f93f61733d6ecd8002341ad (patch)
tree9f3dfcc9c8a50e194216955876c845742a44ab31 /epan/addr_resolv.c
parent15cf4be55e773aa4f43fe6aecc41e4fa7807d9a1 (diff)
addr_resolv: async_dns_queue_head HAVE_C_ARES missing
async_dns_queue_head is only defined when HAVE_C_ARES is available. Therefore we should call it also only if HAVE_C_ARES is set. Change-Id: Iceb27096c188bb1b70ca89ee7782ca8d0990294d Reviewed-on: https://code.wireshark.org/review/15106 Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com> Petri-Dish: Jeff Morriss <jeff.morriss.ws@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/addr_resolv.c')
-rw-r--r--epan/addr_resolv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/addr_resolv.c b/epan/addr_resolv.c
index 6b56e8edd0..080b77964a 100644
--- a/epan/addr_resolv.c
+++ b/epan/addr_resolv.c
@@ -2656,8 +2656,10 @@ host_name_lookup_init(void)
g_assert(ipv6_hash_table == NULL);
ipv6_hash_table = g_hash_table_new(ipv6_oat_hash, ipv6_equal);
+#ifdef HAVE_C_ARES
g_assert(async_dns_queue_head == NULL);
async_dns_queue_head = wmem_list_new(wmem_epan_scope());
+#endif
if (manually_resolved_ipv4_list == NULL)
manually_resolved_ipv4_list = wmem_list_new(wmem_epan_scope());