From 93497befba49b112d90f1ee8aa337507127feaf6 Mon Sep 17 00:00:00 2001 From: Otto Date: Tue, 21 Dec 2021 11:32:59 +0100 Subject: [PATCH] firstTry is set but not used if !defined(MSG_FASTOPEN) --- pdns/iputils.cc | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- 2.47.2