Don't free the BIGNUM passed to BN_mpi2bn
authorMatt Caswell <matt@openssl.org>
Thu, 28 Apr 2016 18:53:08 +0000 (19:53 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 29 Apr 2016 08:05:23 +0000 (09:05 +0100)
commitb8f1c116a357285ccb4905cd88c83f5076bafb52
treed50465dd92dcb198123ed27d6c6c4a6e9d51820c
parent098c1e3d1425ffdad15e6001b4fc9f2a606f3d83
Don't free the BIGNUM passed to BN_mpi2bn

Commit 91fb42dd fixed a leak but introduced a problem where a parameter
is erroneously freed instead.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/bn/bn_mpi.c