From 376eecafd3cbb044c5651cb0cb688d9517abb633 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sun, 18 May 2014 13:58:41 -0400 Subject: [PATCH] Fixed possible connection issue. --- toxcore/TCP_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxcore/TCP_client.c b/toxcore/TCP_client.c index 00a114723..e4845852d 100644 --- a/toxcore/TCP_client.c +++ b/toxcore/TCP_client.c @@ -404,7 +404,7 @@ static int handle_TCP_packet(TCP_Client_Connection *conn, uint8_t *data, uint16_ uint8_t con_id = data[1] - NUM_RESERVED_PORTS; if (conn->connections[con_id].status != 0) - return -1; + return 0; conn->connections[con_id].status = 1; conn->connections[con_id].number = ~0;