#4342: few missing malloc return checks and free in error paths
authorJ Mohan Rao Arisankala <mohan@barracuda.com>
Mon, 23 May 2016 18:07:47 +0000 (23:37 +0530)
committerMatt Caswell <matt@openssl.org>
Mon, 23 May 2016 22:08:22 +0000 (23:08 +0100)
commita93e0e78db78e03bdcd29acf9bbc8a812ee50cb6
tree41552644ef269676d910de3e605ddeb2b54f2b9e
parent1c7bfec5982210b2666a91771777c56338cf4d8d
#4342: few missing malloc return checks and free in error paths

ossl_hmac_cleanup, pkey_hmac_cleanup:
 - allow to invoke with NULL data
 - using EVP_PKEY_CTX_[get|set]_data

EVP_DigestInit_ex:
 - remove additional check for ‘type’ and doing clear free instead of
free

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
crypto/engine/eng_openssl.c
crypto/evp/digest.c
crypto/hmac/hm_pmeth.c