From 12744182c23470b6fa5c3fc4cba513cf5a19537d Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 22 Mar 2019 10:41:26 -0700 Subject: [PATCH] modules/s_dns: Return tag id down stack if possible. --- modules/s_dns.h | 2 +- modules/s_dns_resolver.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/s_dns.h b/modules/s_dns.h index 14f57e60c..1dc1c2b1e 100644 --- a/modules/s_dns.h +++ b/modules/s_dns.h @@ -49,7 +49,7 @@ namespace ircd::net::dns // Resolver instance struct resolver extern *resolver; - void resolver_call(const hostport &, const opts &); + uint16_t resolver_call(const hostport &, const opts &); void resolver_init(answers_callback); void resolver_fini(); } diff --git a/modules/s_dns_resolver.cc b/modules/s_dns_resolver.cc index 2ee265b9f..784912922 100644 --- a/modules/s_dns_resolver.cc +++ b/modules/s_dns_resolver.cc @@ -75,7 +75,7 @@ ircd::net::dns::resolver_fini() ircd::net::dns::resolver = nullptr; } -void +uint16_t ircd::net::dns::resolver_call(const hostport &hp, const opts &opts) { @@ -94,7 +94,7 @@ ircd::net::dns::resolver_call(const hostport &hp, host(hp) }; - resolver(hp, opts); + return resolver(hp, opts); } //