mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-27 12:13:20 -04:00
Free 'n' on error path in rsa_check
(cherry picked from commit 483c5a1978)
This commit is contained in:
parent
6c8fe060af
commit
6b37a69213
1 changed files with 3 additions and 0 deletions
|
|
@ -994,6 +994,9 @@ rsa_check(RSA *rsa, RSA *pub) {
|
|||
}
|
||||
if (e1 != NULL) {
|
||||
if (BN_cmp(e1, e2) != 0) {
|
||||
if (n != NULL) {
|
||||
BN_free(n);
|
||||
}
|
||||
return (DST_R_INVALIDPRIVATEKEY);
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue