From 5c636500446ecfb840e6b8c2f8b139c519d11d62 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Sat, 13 Oct 2018 10:44:40 +0200 Subject: [PATCH] dnsdist: Remove potential double-free in GnuTLS session tickets error handling --- pdns/dnsdistdist/tcpiohandler.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/pdns/dnsdistdist/tcpiohandler.cc b/pdns/dnsdistdist/tcpiohandler.cc index bb9331c01..eb05d81e6 100644 --- a/pdns/dnsdistdist/tcpiohandler.cc +++ b/pdns/dnsdistdist/tcpiohandler.cc @@ -636,8 +636,6 @@ public: if (file.fail()) { file.close(); - safe_memory_release(d_key.data, d_key.size); - gnutls_free(d_key.data); throw std::runtime_error("Invalid GnuTLS tickets key file " + keyFile); } -- 2.40.0