mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Fix double free on RSA_generate_key_ex failure
This commit is contained in:
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Principal Author: Brian Wellington
|
* Principal Author: Brian Wellington
|
||||||
* $Id$
|
|
||||||
*/
|
*/
|
||||||
#ifdef OPENSSL
|
#ifdef OPENSSL
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
@@ -1054,7 +1053,6 @@ opensslrsa_generate(dst_key_t *key, int exp, void (*callback)(int)) {
|
|||||||
#endif
|
#endif
|
||||||
return (ISC_R_SUCCESS);
|
return (ISC_R_SUCCESS);
|
||||||
}
|
}
|
||||||
BN_GENCB_free(cb);
|
|
||||||
ret = dst__openssl_toresult2("RSA_generate_key_ex",
|
ret = dst__openssl_toresult2("RSA_generate_key_ex",
|
||||||
DST_R_OPENSSLFAILURE);
|
DST_R_OPENSSLFAILURE);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user