conncheck: fix a buggy state transition
authorFabrice Bellet <fabrice@bellet.info>
Mon, 23 Nov 2020 21:53:45 +0000 (22:53 +0100)
committerOlivier CrĂȘte <olivier.crete@ocrete.ca>
Mon, 7 Dec 2020 22:12:04 +0000 (22:12 +0000)
commite51bcb25527f795f65d6593fa127a78c7840087c
tree0855d3ec229c1804241839090783e9aa5fd9cbc1
parent7ec7f66d4eb52b5f018cf700fd41d18b5666543c
conncheck: fix a buggy state transition

The previous patch handling tcp disconnections forgot a case when the
selected pair is removed, while in state ready, and in that situation,
we should not jump back to connecting state, but fail instead. Just like
we did at the beginning of the function.
agent/conncheck.c