diff --git a/modules/s_dns_resolver.cc b/modules/s_dns_resolver.cc index 2d42fbcc2..9e1b0868d 100644 --- a/modules/s_dns_resolver.cc +++ b/modules/s_dns_resolver.cc @@ -255,7 +255,7 @@ ircd::net::dns::resolver::check_timeout(const uint16_t &id, tag &tag, const steady_point &cutoff) { - if(tag.last == steady_point{}) + if(tag.last == steady_point::min()) return false; if(tag.last > cutoff) @@ -270,7 +270,7 @@ ircd::net::dns::resolver::check_timeout(const uint16_t &id, host(tag.hp) }; - tag.last = steady_point{}; + tag.last = steady_point::min(); if(tag.tries < size_t(retry_max)) { submit(tag); @@ -551,7 +551,7 @@ try }}; assert(tag.tries > 0); - tag.last = steady_point{}; + tag.last = steady_point::min(); handle_reply(header, body, tag); } catch(const std::exception &e) diff --git a/modules/s_dns_resolver.h b/modules/s_dns_resolver.h index 03b084c8c..825745d52 100644 --- a/modules/s_dns_resolver.h +++ b/modules/s_dns_resolver.h @@ -74,7 +74,7 @@ struct ircd::net::dns::resolver::tag dns::opts opts; // note: invalid after query sent const_buffer question; callback cb; - steady_point last {}; + steady_point last {steady_point::min()}; uint8_t tries {0}; char hostbuf[256]; char qbuf[384];