Set flags to 0 before calling BN_with_flags()
authorPascal Cuoq <cuoq@trust-in-soft.com>
Wed, 6 May 2015 09:31:27 +0000 (11:31 +0200)
committerKurt Roeckx <kurt@roeckx.be>
Wed, 7 Oct 2015 18:36:34 +0000 (20:36 +0200)
commit6481be7346baea1ce0dcfe0a1ff28b0f44e9ce31
tree27a2d82d77d3b94c905fb6e97d615f839e10274d
parentcba874539596a3f6563c4b462793a99965bcf1e1
Set flags to 0 before calling BN_with_flags()

BN_with_flags() will read the dest->flags to keep the BN_FLG_MALLOCED but
overwrites everything else.

Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Rich Salz <rsalz@openssl.org>
MR #1231

(cherry picked from commit f92768e6f5259069bd21dbed2b98b3423c1dfca4)
crypto/bn/bn_gcd.c