Check method before access and release ctx in error paths
authorJ Mohan Rao Arisankala <mohan@barracuda.com>
Tue, 23 Feb 2016 17:03:28 +0000 (22:33 +0530)
committerRich Salz <rsalz@openssl.org>
Fri, 26 Feb 2016 16:16:33 +0000 (11:16 -0500)
commit2c91b3f5bf01de198ca45d49fcba3d6c24e8c7f6
treea771717b8dca98390b8c2741c756cec4baa33faa
parent2d51c28ff749f8b5f133bea0f7ba2160ecc0598b
Check method before access and release ctx in error paths

- In error paths, EVP_MD_CTX allocated by the callee is not released.
- Checking method before accessing

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/asn1/a_sign.c