]> git.ipfire.org Git - thirdparty/openssl.git/commit
demos/cms/cms_denc.c: Add check for BIO_new_file()
authorJiasheng Jiang <jiashengjiangcool@gmail.com>
Wed, 25 Jun 2025 23:06:59 +0000 (23:06 +0000)
committerTomas Mraz <tomas@openssl.org>
Tue, 1 Jul 2025 17:35:47 +0000 (19:35 +0200)
commita60af417231a676da1260637ad937bb97e2c65ee
tree31499bdc3cf3575de275e36d7f6221efc3d7603b
parentd6cd0b66241db22769a8b5323bc2be983eb73cbc
demos/cms/cms_denc.c: Add check for BIO_new_file()

Add check for the return value of BIO_new_file().

Fixes: 1728756 ("Detached encrypt/decrypt example, fix decrypt sample.")
Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27897)

(cherry picked from commit 881ff0c225356a0f28bd55cea5a4c5204b7b7b8a)
demos/cms/cms_denc.c