Fix another return 0 bug in SSL_shutdown()
authortb <tb@openbsd.org>
Tue, 25 Jan 2022 15:00:09 +0000 (15:00 +0000)
committertb <tb@openbsd.org>
Tue, 25 Jan 2022 15:00:09 +0000 (15:00 +0000)
commitebdc0278bd38036b6f3a440ae378b750417dfff5
tree26979e6de8d663e6f0b4ed475203a16f03efefa1
parent94736e2d5de8ffc81be9e196fad045f1f5f43abe
Fix another return 0 bug in SSL_shutdown()

If tls13_recod_layer_send_pending() returns TLS13_IO_EOF, we will
bubble this up to the caller via tls13_legacy_return_code(), which
translates TLS13_IO_EOF to 0. This can happen if we have pending
post handshake-handshake data and the peer closes the pipe.

Presumably tls13_legacy_shutdown() should be rewritten yet again.

ok jsing
lib/libssl/tls13_legacy.c