From: Remi Gacogne Date: Thu, 23 May 2019 10:43:05 +0000 (+0200) Subject: rec: Don't reset errno in asyncresolve() X-Git-Tag: dnsdist-1.4.0-beta1~18^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4dacdeaa8675e07a0c3097c99b9060b233bcb0d;p=thirdparty%2Fpdns.git rec: Don't reset errno in asyncresolve() --- diff --git a/pdns/lwres.cc b/pdns/lwres.cc index 794838924a..108f5b5d3f 100644 --- a/pdns/lwres.cc +++ b/pdns/lwres.cc @@ -169,7 +169,6 @@ int asyncresolve(const ComboAddress& ip, const DNSName& domain, int type, bool d srcmask = boost::none; // this is also our return value, even if EDNS0Level == 0 - errno=0; if(!doTCP) { int queryfd; if(ip.sin4.sin_family==AF_INET6)