]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Don't reset errno in asyncresolve()
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 23 May 2019 10:43:05 +0000 (12:43 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 23 May 2019 10:43:05 +0000 (12:43 +0200)
pdns/lwres.cc

index 794838924ae0106d532b81d3e79d31ed6ff45c26..108f5b5d3fa2cfc6b42d1e10e89a86540a9b4b2f 100644 (file)
@@ -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)