mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Address potential memory leak in dst__openssl_fromlabel
This commit is contained in:
@@ -342,6 +342,16 @@ dst__openssl_fromlabel(int key_base_id, const char *engine, const char *label,
|
|||||||
ppub, ppriv));
|
ppub, ppriv));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (*ppub != NULL) {
|
||||||
|
EVP_PKEY_free(*ppub);
|
||||||
|
*ppub = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (*ppriv != NULL) {
|
||||||
|
EVP_PKEY_free(*ppriv);
|
||||||
|
*ppriv = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return (dst__openssl_fromlabel_engine(key_base_id, engine, label, pin,
|
return (dst__openssl_fromlabel_engine(key_base_id, engine, label, pin,
|
||||||
ppub, ppriv));
|
ppub, ppriv));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user