mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-26 11:32:01 -05:00
Free 'n' on error path in rsa_check
(cherry picked from commit 483c5a1978)
This commit is contained in:
parent
03c5db001e
commit
2c8e38f359
1 changed files with 3 additions and 0 deletions
|
|
@ -852,6 +852,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