From: Guus Sliepen Date: Mon, 9 Feb 2015 14:06:12 +0000 (+0100) Subject: Always call res_init() before getaddrinfo(). X-Git-Tag: release-1.0.26~12 X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=09d60499af3acef2ba9bd7be15e8d1c44249f8d5;hp=09d60499af3acef2ba9bd7be15e8d1c44249f8d5 Always call res_init() before getaddrinfo(). 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. ---