From: Otto Date: Tue, 30 Nov 2021 09:03:57 +0000 (+0100) Subject: Catch an exception in guard destructor as seen by coverity. X-Git-Tag: auth-4.6.0-beta1~13^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d757f4fe3e5b4880667fb184c92ef439d48241a;p=thirdparty%2Fpdns.git Catch an exception in guard destructor as seen by coverity. --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 57b23271cc..3d4315d06a 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -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() {