]> git.ipfire.org Git - thirdparty/openssl.git/commit
Always add a suitable error if we fail to decode
authorMatt Caswell <matt@openssl.org>
Mon, 31 Jul 2023 11:30:34 +0000 (12:30 +0100)
committerTomas Mraz <tomas@openssl.org>
Tue, 1 Aug 2023 18:10:00 +0000 (20:10 +0200)
commitbc34490fa14f9cb69feb245b9cbbef625cf70c00
treef7e492a493b2357cd87a714572b1c1df9612fd4c
parent1383dc6044883edb18d60b5faa3630dd2c46540b
Always add a suitable error if we fail to decode

We're always supposed to add the fallback "unsupported" error if we don't
have anything better. However in some cases this wasn't happening because
we were incorrectly setting "flag_construct_called" - even though the
construct function had failed.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21603)

(cherry picked from commit 564e5b754a4680dfad38585dd73bcf025567b448)
crypto/encode_decode/decoder_lib.c