From 01cc622e7b62184241c714f8bc8084e7faf7e9cd Mon Sep 17 00:00:00 2001 From: Petr Mensik Date: Sat, 24 Feb 2018 10:41:58 -0800 Subject: [PATCH] Fix double free on RSA_generate_key_ex failure --- lib/dns/opensslrsa_link.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/dns/opensslrsa_link.c b/lib/dns/opensslrsa_link.c index 62a525d5df..f62fae70cd 100644 --- a/lib/dns/opensslrsa_link.c +++ b/lib/dns/opensslrsa_link.c @@ -11,7 +11,6 @@ /* * Principal Author: Brian Wellington - * $Id$ */ #ifdef OPENSSL #include @@ -1054,7 +1053,6 @@ opensslrsa_generate(dst_key_t *key, int exp, void (*callback)(int)) { #endif return (ISC_R_SUCCESS); } - BN_GENCB_free(cb); ret = dst__openssl_toresult2("RSA_generate_key_ex", DST_R_OPENSSLFAILURE);