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:
parent
cf37e364ce
commit
6a6ed91a27
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue