]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Also catch exceptions not derived from std::exception
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 12 Oct 2018 17:16:43 +0000 (19:16 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 12 Oct 2018 17:16:43 +0000 (19:16 +0200)
pdns/dnsdistdist/tcpiohandler.cc

index cd2f4480f47a00bd35dbbae9b4c4609394af3537..bb9331c019885ed447d3dc56569ee9c6b06e05ce 100644 (file)
@@ -258,7 +258,7 @@ public:
         try {
           handleIORequest(res, timeout);
         }
-        catch(const std::exception&) {
+        catch(...) {
           SSL_free(d_conn);
           d_conn = nullptr;
           throw;