Free a BIGNUM on error in BN_mpi2bn
authorMatt Caswell <matt@openssl.org>
Wed, 27 Apr 2016 11:55:44 +0000 (12:55 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 28 Apr 2016 12:13:09 +0000 (13:13 +0100)
commit91fb42ddbef7a88640d1a0f853c941c20df07de7
treebd3f2f425264fe958ce6eae7be1d26460862aaf2
parentb0b6ba2d11ce4188e32be50c9e87672c67183616
Free a BIGNUM on error in BN_mpi2bn

In the BN_mpi2bn() function, a failure of a call to BN_bin2bn() could
result in the leak of a previously allocated BIGNUM value.

Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/bn/bn_mpi.c