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:05:42 +0000 (09:05 -0600)
commit178989b4a3ed714fa169cae5865c75f156ec9fdb
treef536407ccbbc6c327c457a8b0166e3227ba354ed
parente72bf967186a2ac26459926a20dbf03dc119eb5b
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)
crypto/rsa/rsa_ameth.c