From 1d757f4fe3e5b4880667fb184c92ef439d48241a Mon Sep 17 00:00:00 2001 From: Otto Date: Tue, 30 Nov 2021 10:03:57 +0100 Subject: [PATCH] Catch an exception in guard destructor as seen by coverity. --- pdns/pdns_recursor.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() { -- 2.47.2