Always call res_init() before getaddrinfo().
authorGuus Sliepen <guus@tinc-vpn.org>
Mon, 9 Feb 2015 14:06:12 +0000 (15:06 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Mon, 9 Feb 2015 14:06:12 +0000 (15:06 +0100)
Unfortunately, glibc assumes that /etc/resolv.conf is a static file that
never changes. Even on servers, /etc/resolv.conf might be a dynamically
generated file, and we never know when it changes. So just call
res_init() every time, so glibc uses up-to-date nameserver information.


No differences found