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 16:54:12 +0000 (18:54 +0200)
commitf92768e6f5259069bd21dbed2b98b3423c1dfca4
tree4493b93cbf9a74cb2ef7a80f8a0a0891a78169d2
parent68a166285102a7cf5dadee763243ae575c5cee77
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
crypto/bn/bn_gcd.c