From: Remi Gacogne Date: Fri, 12 Oct 2018 17:16:43 +0000 (+0200) Subject: dnsdist: Also catch exceptions not derived from std::exception X-Git-Tag: dnsdist-1.3.3~43^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4216514ecec8a2c6cb1b7e07fadc8cd07e8ff70f;p=thirdparty%2Fpdns.git dnsdist: Also catch exceptions not derived from std::exception --- diff --git a/pdns/dnsdistdist/tcpiohandler.cc b/pdns/dnsdistdist/tcpiohandler.cc index cd2f4480f4..bb9331c019 100644 --- a/pdns/dnsdistdist/tcpiohandler.cc +++ b/pdns/dnsdistdist/tcpiohandler.cc @@ -258,7 +258,7 @@ public: try { handleIORequest(res, timeout); } - catch(const std::exception&) { + catch(...) { SSL_free(d_conn); d_conn = nullptr; throw;