From: Otto Date: Tue, 21 Dec 2021 10:32:59 +0000 (+0100) Subject: firstTry is set but not used if !defined(MSG_FASTOPEN) X-Git-Tag: auth-4.7.0-alpha1~107^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11117%2Fhead;p=thirdparty%2Fpdns.git firstTry is set but not used if !defined(MSG_FASTOPEN) --- diff --git a/pdns/iputils.cc b/pdns/iputils.cc index 67375ffb2e..ac2f737c8d 100644 --- a/pdns/iputils.cc +++ b/pdns/iputils.cc @@ -393,7 +393,9 @@ size_t sendMsgWithOptions(int fd, const char* buffer, size_t len, const ComboAdd msgh.msg_flags = 0; size_t sent = 0; +#ifdef MSG_FASTOPEN bool firstTry = true; +#endif do { @@ -414,7 +416,9 @@ size_t sendMsgWithOptions(int fd, const char* buffer, size_t len, const ComboAdd } /* partial write */ + #ifdef MSG_FASTOPEN firstTry = false; + #endif iov.iov_len -= written; iov.iov_base = reinterpret_cast(reinterpret_cast(iov.iov_base) + written); }