Skip to content
This repository has been archived by the owner on Feb 18, 2023. It is now read-only.

Commit

Permalink
tls: clear estab_srv flag when tc_srv is freed
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cspiel1 committed Dec 7, 2022
1 parent 6699d55 commit f330619
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f330619

Please sign in to comment.