Fix a potential double free in EVP_DigestInit_ex
authorMatt Caswell <matt@openssl.org>
Mon, 14 Mar 2016 17:06:19 +0000 (17:06 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 18 Mar 2016 11:40:00 +0000 (11:40 +0000)
commitffe9150b1508a0ffc9e724f975691f24eb045c05
tree651da86d34f39172f94feae0db3975bf4de15e0d
parent507c7c0ed6cbecbe16114dbbbb9fecc5ce5863a4
Fix a potential double free in EVP_DigestInit_ex

There is a potential double free in EVP_DigestInit_ex. This is believed
to be reached only as a result of programmer error - but we should fix it
anyway.

Issue reported by Guido Vranken.

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