mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-13 15:49:59 -04:00
A couple of more cleanups after free in opensslrsa_generate()
This commit is contained in:
parent
edaafacf36
commit
d2b3188c61
1 changed files with 9 additions and 3 deletions
|
|
@ -1059,13 +1059,19 @@ opensslrsa_generate(dst_key_t *key, int exp, void (*callback)(int)) {
|
|||
|
||||
err:
|
||||
#if USE_EVP
|
||||
if (pkey != NULL)
|
||||
if (pkey != NULL) {
|
||||
EVP_PKEY_free(pkey);
|
||||
pkey = NULL;
|
||||
}
|
||||
#endif
|
||||
if (e != NULL)
|
||||
if (e != NULL) {
|
||||
BN_free(e);
|
||||
if (rsa != NULL)
|
||||
e = NULL;
|
||||
}
|
||||
if (rsa != NULL) {
|
||||
RSA_free(rsa);
|
||||
rsa = NULL;
|
||||
}
|
||||
if (cb != NULL) {
|
||||
BN_GENCB_free(cb);
|
||||
cb = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue