]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: correctly apply outgoing.tcp_max_queries bound 13480/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 10 Nov 2023 12:15:20 +0000 (13:15 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 10 Nov 2023 12:15:20 +0000 (13:15 +0100)
Fixes #13467

pdns/recursordist/rec-tcpout.cc

index 8854ce12e0747ba9f366d12b28b59a9ff7c5dab1..8b65110e0fb0af41396e5f650ca99320742b3875 100644 (file)
@@ -54,7 +54,7 @@ void TCPOutConnectionManager::cleanup(const struct timeval& now)
 void TCPOutConnectionManager::store(const struct timeval& now, const ComboAddress& ip, Connection&& connection)
 {
   ++connection.d_numqueries;
-  if (s_maxQueries > 0 && connection.d_numqueries > s_maxQueries) {
+  if (s_maxQueries > 0 && connection.d_numqueries >= s_maxQueries) {
     return;
   }