From 4216514ecec8a2c6cb1b7e07fadc8cd07e8ff70f Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 12 Oct 2018 19:16:43 +0200 Subject: [PATCH] dnsdist: Also catch exceptions not derived from std::exception --- pdns/dnsdistdist/tcpiohandler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdistdist/tcpiohandler.cc b/pdns/dnsdistdist/tcpiohandler.cc index cd2f4480f..bb9331c01 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; -- 2.40.0