summaryrefslogtreecommitdiffstats
path: root/apps/rsa.c
diff options
context:
space:
mode:
authorPeiwei Hu <jlu.hpw@foxmail.com>2022-05-28 23:51:32 +0800
committerTodd Short <todd.short@me.com>2022-06-02 10:36:56 -0400
commit92d0d7ea9be40909ee79fb8861641a61eead2431 (patch)
treef7844b2da51b2ac8b4225bfebabcbbcf543600ec /apps/rsa.c
parentc2f7614fb7b93fe3792068077ff01384f42f39bc (diff)
Fix the checks of EVP_PKEY_check
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Todd Short <todd.short@me.com> (Merged from https://github.com/openssl/openssl/pull/18424)
Diffstat (limited to 'apps/rsa.c')
-rw-r--r--apps/rsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/rsa.c b/apps/rsa.c
index 11a2adbc3e..9df07aba5b 100644
--- a/apps/rsa.c
+++ b/apps/rsa.c
@@ -302,7 +302,7 @@ int rsa_main(int argc, char **argv)
} else if (r == 0) {
BIO_printf(bio_err, "RSA key not ok\n");
ERR_print_errors(bio_err);
- } else if (r == -1) {
+ } else if (r < 0) {
ERR_print_errors(bio_err);
goto end;
}