]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix return value of the i2d_ASN1_bio_stream() call
authorAndrey Tsygunka <aitsygunka@yandex.ru>
Thu, 20 Mar 2025 14:45:23 +0000 (17:45 +0300)
committerTomas Mraz <tomas@openssl.org>
Wed, 26 Mar 2025 14:28:04 +0000 (15:28 +0100)
commitf87cd1f56619e5d0112b929ab489f7a1568bebc1
tree2d5f9d189c8ae2457b4666cb43e2b741b871469e
parent724c593e26766514f172e13719d6fa483837e4fc
Fix return value of the i2d_ASN1_bio_stream() call

If the flags argument does not contain the SMIME_STREAM bit,
the i2d_ASN1_bio_stream() function always returns 1,
ignoring the result of the ASN1_item_i2d_bio() call.

Fix the return value to the result of the ASN1_item_i2d_bio()
call for this case.

CLA: trivial

Signed-off-by: Andrey Tsygunka <aitsygunka@yandex.ru>
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27106)

(cherry picked from commit 3edb1f09c62c058edf4039587ef35f6b074e0870)
crypto/asn1/asn_mime.c