]> git.ipfire.org Git - thirdparty/openssl.git/commit
asn1: clear error mark on success in asn1_d2i_read_bio
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Sat, 11 Oct 2025 12:40:13 +0000 (20:40 +0800)
committerTomas Mraz <tomas@openssl.org>
Mon, 24 Nov 2025 18:10:25 +0000 (19:10 +0100)
commit7f015c909ee3480a59d4fe828c3da22c7a55a2f4
tree63c7400a6ada984c301b4804442e67d20c419f37
parentd3463971bcd6a0abb4e925102cba30c8783c4f40
asn1: clear error mark on success in asn1_d2i_read_bio

Balance ERR_set_mark by calling ERR_clear_last_mark on the success path.
Prevents a stale mark from skewing later error handling.

Signed-off-by: Joshua Rogers <MegaManSec@users.noreply.github.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28882)
crypto/asn1/a_d2i_fp.c