diff options
author | Kinichiro Inoguchi <inoguchi@cvs.openbsd.org> | 2022-01-20 11:08:13 +0000 |
---|---|---|
committer | Kinichiro Inoguchi <inoguchi@cvs.openbsd.org> | 2022-01-20 11:08:13 +0000 |
commit | b1b4cf35a61620572d6186c42f66dcc5cc5a8894 (patch) | |
tree | 58a6ca3b89da8bc031bd10fa26fe5869ff79a1f6 /lib | |
parent | 98943ee34d2f05739f515a6be453e3a44302cf39 (diff) |
Fix check for BN_mod_inverse_ct return value
ok jsing@ millert@ tb@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/rsa/rsa_chk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/rsa/rsa_chk.c b/lib/libcrypto/rsa/rsa_chk.c index 807eae084eb..ac9dbf7a227 100644 --- a/lib/libcrypto/rsa/rsa_chk.c +++ b/lib/libcrypto/rsa/rsa_chk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_chk.c,v 1.15 2022/01/10 00:03:02 tb Exp $ */ +/* $OpenBSD: rsa_chk.c,v 1.16 2022/01/20 11:08:12 inoguchi Exp $ */ /* ==================================================================== * Copyright (c) 1999 The OpenSSL Project. All rights reserved. * @@ -199,7 +199,7 @@ RSA_check_key(const RSA *key) } /* iqmp = q^-1 mod p? */ - if (!BN_mod_inverse_ct(i, key->q, key->p, ctx)) { + if (BN_mod_inverse_ct(i, key->q, key->p, ctx) == NULL) { ret = -1; goto err; } |