mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 08:02:06 -04:00
Fix a bug when comparing two RSA keys
When comparing different parameters of two RSA keys there is a typo which causes the "p" prime factors to not being compared. Fix the typo.
This commit is contained in:
parent
ad57f03389
commit
930e4f52a5
1 changed files with 1 additions and 1 deletions
|
|
@ -406,7 +406,7 @@ opensslrsa_compare(const dst_key_t *key1, const dst_key_t *key2) {
|
|||
}
|
||||
RSA_get0_factors(rsa1, &p1, &q1);
|
||||
RSA_get0_factors(rsa2, &p2, &q2);
|
||||
status = BN_cmp(d1, d2) || BN_cmp(p1, p1) || BN_cmp(q1, q2);
|
||||
status = BN_cmp(d1, d2) || BN_cmp(p1, p2) || BN_cmp(q1, q2);
|
||||
|
||||
if (status != 0) {
|
||||
return (false);
|
||||
|
|
|
|||
Loading…
Reference in a new issue