bn/bn_mod.c: harmonize BN_mod_add_quick with original implementation.
authorAndy Polyakov <appro@openssl.org>
Wed, 25 Jul 2018 08:29:51 +0000 (10:29 +0200)
committerAndy Polyakov <appro@openssl.org>
Thu, 26 Jul 2018 11:56:05 +0000 (13:56 +0200)
commit70a579ae2f37437a1e02331eeaa84e1b68ba021e
treec81ecc60120d129b210bfb96edb1c6188deeb0c6
parent06deb93286ac5f125fc81ddc9260b9de2311c7f3
bn/bn_mod.c: harmonize BN_mod_add_quick with original implementation.

New implementation failed to correctly reset r->neg flag. Spotted by
OSSFuzz.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6783)
crypto/bn/bn_mod.c