]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Remove potential double-free in GnuTLS session tickets error handling 7060/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Sat, 13 Oct 2018 08:44:40 +0000 (10:44 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Sat, 13 Oct 2018 08:44:40 +0000 (10:44 +0200)
pdns/dnsdistdist/tcpiohandler.cc

index bb9331c019885ed447d3dc56569ee9c6b06e05ce..eb05d81e610b37a72d00d88a9db7fa8991438559 100644 (file)
@@ -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);
       }