From: Asgeir Storesund Nilsen Date: Mon, 8 Aug 2022 09:01:42 +0000 (+0200) Subject: Use stringerror X-Git-Tag: rec-4.8.0-alpha1~69^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11830%2Fhead;p=thirdparty%2Fpdns.git Use stringerror Co-authored-by: Remi Gacogne --- diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index 709cf7161e..39e9c57447 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -1091,7 +1091,7 @@ ssize_t udpClientSendRequestToBackend(const std::shared_ptr& 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.