Test the result of CMS_RecipientInfo_ktri_get0_algs() before using its output in...
authorBrad Spencer <bspencer@blackberry.com>
Wed, 20 Dec 2017 17:41:14 +0000 (13:41 -0400)
committerBen Kaduk <kaduk@mit.edu>
Thu, 1 Mar 2018 15:17:41 +0000 (09:17 -0600)
commitea8d9cec4739d6b06d25f3d01a1b7666d5a090ed
tree08d41ae06225a643d720f1941412919c6bf134fc
parentfa9ab9ee91c28b755f8fc51d4c45042e6798ce6b
Test the result of CMS_RecipientInfo_ktri_get0_algs() before using its output in rsa_cms_encrypt().

CLA: trivial

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/4966)

(cherry picked from commit 178989b4a3ed714fa169cae5865c75f156ec9fdb)
crypto/rsa/rsa_ameth.c