]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Catch an exception in guard destructor as seen by coverity. 11050/head
authorOtto <otto.moerbeek@open-xchange.com>
Tue, 30 Nov 2021 09:03:57 +0000 (10:03 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Tue, 30 Nov 2021 09:03:57 +0000 (10:03 +0100)
pdns/pdns_recursor.cc

index 57b23271cc06402bd2d37ac917758d3efbba4b68..3d4315d06a2a603f8854068d8b9716d1702a47cb 100644 (file)
@@ -1160,7 +1160,11 @@ public:
   }
   ~RunningResolveGuard() {
     if (!d_handled && d_dc->d_tcp) {
-      finishTCPReply(d_dc, false, true);
+      try {
+        finishTCPReply(d_dc, false, true);
+      }
+      catch (const FDMultiplexerException&) {
+      }
     }
   }
   void setHandled() {