Handle SMIME_crlf_copy return code
authorAlon Bar-Lev <alon.barlev@gmail.com>
Tue, 26 Jul 2022 12:17:06 +0000 (15:17 +0300)
committerHugo Landau <hlandau@openssl.org>
Thu, 28 Jul 2022 09:05:59 +0000 (10:05 +0100)
commit67c0460b89cc1b0644a1a59af78284dfd8d720af
tree90dc060cd2fb8ec810f9d58d691f056f0ff3f3bb
parentb03756130dadb3732b460a6efd930f1b226acdad
Handle SMIME_crlf_copy return code

Currently the SMIME_crlf_copy result is ignored in all usages. It does
return failure when memory allocation fails.

This patch handles the SMIME_crlf_copy return code in all occurrences.

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18876)
crypto/asn1/asn_mime.c
crypto/cms/cms_smime.c
crypto/pkcs7/pk7_smime.c