]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
When we drop a notify over TCP, terminate the connection 11018/head
authorOtto <otto.moerbeek@open-xchange.com>
Mon, 22 Nov 2021 14:18:07 +0000 (15:18 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Mon, 22 Nov 2021 14:18:07 +0000 (15:18 +0100)
pdns/pdns_recursor.cc

index 334e4b491c19be70d0e90c32249854a19cf288a0..0061e661e38d3e70c5ca125357c25bc7c2ca471e 100644 (file)
@@ -2952,6 +2952,7 @@ static void handleRunningTCPQuestion(int fd, FDMultiplexer::funcparam_t& var)
             }
 
             g_stats.sourceDisallowedNotify++;
+            terminateTCPConnection(fd);
             return;
           }
 
@@ -2961,6 +2962,7 @@ static void handleRunningTCPQuestion(int fd, FDMultiplexer::funcparam_t& var)
             }
 
             g_stats.zoneDisallowedNotify++;
+            terminateTCPConnection(fd);
             return;
           }
         }