summaryrefslogtreecommitdiffstats
path: root/src/vnet/session
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/session')
-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);