]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix return value checking of BN_check_prime invocations
authorPW Hu <jlu.hpw@foxmail.com>
Fri, 5 Nov 2021 09:33:32 +0000 (17:33 +0800)
committerTomas Mraz <tomas@openssl.org>
Fri, 12 Nov 2021 10:23:36 +0000 (11:23 +0100)
commit32b172b0b5ee8f3ba9efffb13b3f612024b9e13d
treef54feec1542b77e11e4565e1c9864290d2c9f93d
parent648a15d6f5004f6f2ad88ea829adc7d29c638165
Fix return value checking of BN_check_prime invocations

Negative return value indicates an error so we bail out.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16975)

(cherry picked from commit 680827a15f12c3b37a6335fcb992555cf300730e)
crypto/bn/bn_rsa_fips186_4.c