0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd::net::dns: Fix init/fini for the proper netdb.

This commit is contained in:
Jason Volk 2020-03-12 10:00:09 -07:00
parent cf37e364ce
commit 6a6ed91a27

View file

@ -37,7 +37,7 @@ ircd::net::dns::init::init()
{
#ifdef HAVE_NETDB_H
static const int stay_open {true};
::setprotoent(stay_open);
::setservent(stay_open);
#endif
assert(!resolver_instance);
@ -54,7 +54,7 @@ noexcept
resolver_instance = nullptr;
#ifdef HAVE_NETDB_H
::endprotoent();
::endservent();
#endif
}