2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

Fix double free on RSA_generate_key_ex failure

This commit is contained in:
Petr Mensik 2018-02-24 10:41:58 -08:00 committed by Ondřej Surý
parent 955ca7382d
commit 01cc622e7b

View File

@ -11,7 +11,6 @@
/*
* Principal Author: Brian Wellington
* $Id$
*/
#ifdef OPENSSL
#include <config.h>
@ -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);