diff options
author | jsing <> | 2020-09-13 15:04:35 +0000 |
---|---|---|
committer | jsing <> | 2020-09-13 15:04:35 +0000 |
commit | 4f04d3f588f91c98b4b1cdfcffe028a036c96283 (patch) | |
tree | 66217926431671cbe7e0cf55889348dd2d802dcc /src/lib/libssl/ssl_ciphers.c | |
parent | b3e8f4a7980701599a2efe619be2eb35273abe96 (diff) | |
download | openbsd-4f04d3f588f91c98b4b1cdfcffe028a036c96283.tar.gz openbsd-4f04d3f588f91c98b4b1cdfcffe028a036c96283.tar.bz2 openbsd-4f04d3f588f91c98b4b1cdfcffe028a036c96283.zip |
Improve handling of BIO_read()/BIO_write() failures in the TLSv1.3 stack.
When BIO returns a failure, it does not always add an error to the error
stack. In the case of the legacy stack, this was generally handled by the
guesswork performed by SSL_get_error(). However, in the case of the new
stack we push an 'unknown' error onto the stack.
Improve this situation by specifically checking errno in the case of a
BIO_read() or BIO_write() failure. If the error stack is empty then push
a SYSerror() with the errno which is preferable to the 'unknown' error
later.
Noted by bluhm@ via syslogd regress.
ok beck@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_ciphers.c')
0 files changed, 0 insertions, 0 deletions