]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Use stringerror 11830/head
authorAsgeir Storesund Nilsen <asgeir@twingine.no>
Mon, 8 Aug 2022 09:01:42 +0000 (11:01 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Aug 2022 09:01:42 +0000 (11:01 +0200)
Co-authored-by: Remi Gacogne <github@coredump.fr>
pdns/dnsdist.cc

index 709cf7161e5173b149a9d38748c2698043ff3fca..39e9c57447579f6f1a207a82c2f3933fa78e4a31 100644 (file)
@@ -1091,7 +1091,7 @@ ssize_t udpClientSendRequestToBackend(const std::shared_ptr<DownstreamState>& ss
 
   if (result == -1) {
     int savederrno = errno;
-    vinfolog("Error sending request to backend %s: %s", ss->d_config.remote.toStringWithPort(), strerror(savederrno));
+    vinfolog("Error sending request to backend %s: %s", ss->d_config.remote.toStringWithPort(), stringerror(savederrno));
 
     /* This might sound silly, but on Linux send() might fail with EINVAL
        if the interface the socket was bound to doesn't exist anymore.