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:41:15 +0000 (20:41 +0200)
commit11ca27c912888460a7a06b9308fd85170e1db194
treeab0d2369e581e29b14d81466e28124520f9f78fb
parenta0ba92ccde949582e498cb42bced205ec1c95a3c
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