Add missing BN_CTX_end() calls.
authordoug <doug@openbsd.org>
Wed, 29 Apr 2015 00:11:12 +0000 (00:11 +0000)
committerdoug <doug@openbsd.org>
Wed, 29 Apr 2015 00:11:12 +0000 (00:11 +0000)
commit4c1eb2eb8ae201872995093439778e3716b9504a
treeea4bdf9f7bf3adfad0b2068593fab33f0ad5e42d
parent7b7912d560f5bed25447bb098ad95b40b5e75930
Add missing BN_CTX_end() calls.

After calling BN_CTX_start(), there must be a BN_CTX_end() before
returning.  There were missing BN_CTX_end() calls in error paths.  One diff
chunk was simply removing redundant code related to this.

ok deraadt@
lib/libcrypto/bn/bn_gf2m.c
lib/libcrypto/bn/bn_recp.c
lib/libcrypto/bn/bn_x931p.c
lib/libcrypto/ec/ec_lib.c
lib/libssl/src/crypto/bn/bn_gf2m.c
lib/libssl/src/crypto/bn/bn_recp.c
lib/libssl/src/crypto/bn/bn_x931p.c
lib/libssl/src/crypto/ec/ec_lib.c