From f3306195682c22018af8347dc7a13d16ece5762e Mon Sep 17 00:00:00 2001 From: Christian Spielberger Date: Tue, 6 Dec 2022 15:39:13 +0100 Subject: [PATCH] tls: clear estab_srv flag when tc_srv is freed The flag that indicates that the local TCP server to remote TCP client connection was established has to be reset to false if the TCP connection is closed. --- src/tls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tls.c b/src/tls.c index cd3d071c..f27ad986 100644 --- a/src/tls.c +++ b/src/tls.c @@ -288,6 +288,7 @@ static int test_tls_base(enum tls_keytype keytype, bool add_ca, int exp_verr, tt.tc_cli = mem_deref(tt.tc_cli); tt.tc_srv = mem_deref(tt.tc_srv); tt.estab_cli = false; + tt.estab_srv = false; tt.recv_cli = 0; }