]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix BIO_f_asn1() to properly report some errors
authorMatt Caswell <matt@openssl.org>
Tue, 6 Dec 2022 14:35:53 +0000 (14:35 +0000)
committerTomas Mraz <tomas@openssl.org>
Thu, 22 Dec 2022 10:07:07 +0000 (11:07 +0100)
commite913b911e04a6b276deb7d7553694ae2c1a563cc
tree388a3eaa215c519d62cdf0de19e670b73d17fa7f
parent1354191dac44f9ac04c38fd9fb56287f00039b82
Fix BIO_f_asn1() to properly report some errors

Some things that may go wrong in asn1_bio_write() are serious errors
that should be reported as -1, rather than 0 (which just means "we wrote
no data").

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19920)
crypto/asn1/bio_asn1.c