Improve error handling in pk7_doit
authorMatt Caswell <matt@openssl.org>
Mon, 12 Mar 2018 13:56:34 +0000 (13:56 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 12 Mar 2018 19:18:13 +0000 (19:18 +0000)
commit7e454ca3660af9416dcea0195ebe86fc3ff2fd80
tree3aaec9d135b9873d5dd9b1e631f26f6ce7e9df29
parentcd70b642322a78eb9f2e6e09185326498eebe2d0
Improve error handling in pk7_doit

If a mem allocation failed we would ignore it. This commit fixes it to
always check.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5596)

(cherry picked from commit 4718f449a3ecd5efac62b22d0fa9a759a7895dbc)
crypto/pkcs7/pk7_doit.c