tls-socket: Don't fail reading if sending data failed
authorTobias Brunner <tobias@strongswan.org>
Wed, 26 Aug 2020 15:42:21 +0000 (17:42 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 12 Feb 2021 10:45:44 +0000 (11:45 +0100)
commit09fbaad6bd712b5480d9c1d8a9bfa766171b783d
tree03795af9a590cf3b36ec034b94ec11d71de78431
parentd532d6c7bc8ba5d746cb522d9633c11671a956bb
tls-socket: Don't fail reading if sending data failed

If data is processed that eventually includes a TLS close notify, build()
will fail after a close notify has been sent in turn.  However, propagating
that error immediately when reading prevented ever returning the data
already processed before the close notify was received.
src/libtls/tls_socket.c