summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-11-23 16:20:15 -0800
committerDamjan Marion <dmarion@me.com>2021-11-24 13:10:49 +0000
commit32c7335ea9da8470041be2f155afba77985809db (patch)
tree89a571d941b2cf5d1d61dd8f45119c9097b6ae38 /src/vnet
parent89a4978afd6ba9d5e7970a86e7beb95ef3b908ae (diff)
session: detach server from client on connect failure
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ie2ed2554578d6a2c671c552dc2bdc081f9754eed
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/session/application_local.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/session/application_local.c b/src/vnet/session/application_local.c
index db8d721b631..8c17a15de53 100644
--- a/src/vnet/session/application_local.c
+++ b/src/vnet/session/application_local.c
@@ -398,6 +398,8 @@ connect_error:
cleanup_client:
+ sct->peer_index = ~0;
+
if (cct->client_rx_fifo)
ct_session_dealloc_fifos (cct, cct->client_rx_fifo, cct->client_tx_fifo);
ct_connection_free (cct);