]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
When we drop a notify over TCP, terminate the connection 11022/head
authorOtto <otto.moerbeek@open-xchange.com>
Mon, 22 Nov 2021 14:18:07 +0000 (15:18 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Tue, 23 Nov 2021 08:15:05 +0000 (09:15 +0100)
(cherry picked from commit 9aa6eeca355c50bc79e9f7ea986689fa0a296e42)

pdns/pdns_recursor.cc

index b8e00a7a6e5db3e00d277599e04ab7049f7ff5c1..297ff9459dd37b90c6a0dc250a0df3efbad03a05 100644 (file)
@@ -2950,6 +2950,7 @@ static void handleRunningTCPQuestion(int fd, FDMultiplexer::funcparam_t& var)
             }
 
             g_stats.sourceDisallowedNotify++;
+            terminateTCPConnection(fd);
             return;
           }
 
@@ -2959,6 +2960,7 @@ static void handleRunningTCPQuestion(int fd, FDMultiplexer::funcparam_t& var)
             }
 
             g_stats.zoneDisallowedNotify++;
+            terminateTCPConnection(fd);
             return;
           }
         }