s3:lib/tls: we need to call tstream_tls_retry_handshake/disconnect() until all buffer...
authorStefan Metzmacher <metze@samba.org>
Fri, 26 Jan 2024 13:42:40 +0000 (14:42 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 23 Apr 2024 23:50:33 +0000 (23:50 +0000)
commit6688945fa03f4a448708f729083ea4a1cdd1ab88
treefd538f9c1214a04d154e5a4d370b31b82dff66fb
parent5844ef27aa46cba3d343035ccd35b03525db9843
s3:lib/tls: we need to call tstream_tls_retry_handshake/disconnect() until all buffers are flushed

Before the handshare or disconnect is over we need to wait until
we delivered the lowlevel messages to the transport/kernel socket.

Otherwise we'll have a problem if another tevent_context is used
after the handshake.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15621

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/lib/tls/tls_tstream.c