From: Otto Moerbeek Date: Mon, 12 Aug 2019 12:24:24 +0000 (+0200) Subject: Some stringerror() missed cases as spotted by chbruyand X-Git-Tag: dnsdist-1.4.0-rc3~39^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=296ddbfe7f009e07efbac338ab6e7c0cbb9022fb;p=thirdparty%2Fpdns.git Some stringerror() missed cases as spotted by chbruyand --- diff --git a/pdns/dnsdist-tcp.cc b/pdns/dnsdist-tcp.cc index 259c377d3a..d4a7b635c1 100644 --- a/pdns/dnsdist-tcp.cc +++ b/pdns/dnsdist-tcp.cc @@ -288,7 +288,7 @@ void TCPClientCollection::addTCPClientThread() int err = errno; close(pipefds[0]); close(pipefds[1]); - errlog("Error setting the TCP thread communication pipe non-blocking: %s", strerror(err)); + errlog("Error setting the TCP thread communication pipe non-blocking: %s", stringerror(err)); return; } @@ -296,7 +296,7 @@ void TCPClientCollection::addTCPClientThread() int err = errno; close(pipefds[0]); close(pipefds[1]); - errlog("Error setting the TCP thread communication pipe non-blocking: %s", strerror(err)); + errlog("Error setting the TCP thread communication pipe non-blocking: %s", stringerror(err)); return; } } diff --git a/pdns/nameserver.cc b/pdns/nameserver.cc index c5753f8044..7f0785989b 100644 --- a/pdns/nameserver.cc +++ b/pdns/nameserver.cc @@ -103,8 +103,9 @@ void UDPNameserver::bindIPv4() s=socket(AF_INET,SOCK_DGRAM,0); if(s<0) { - g_log<