summaryrefslogtreecommitdiff
path: root/toxcore/net_crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r--toxcore/net_crypto.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c
index ccf61700..1f00144a 100644
--- a/toxcore/net_crypto.c
+++ b/toxcore/net_crypto.c
@@ -540,12 +540,12 @@ int accept_crypto_inbound(Net_Crypto *c, int connection_id, uint8_t *public_key,
540 if (connection_id == -1) 540 if (connection_id == -1)
541 return -1; 541 return -1;
542 542
543 /* 543 /*
544 * if(getcryptconnection_id(public_key) != -1) 544 * if(getcryptconnection_id(public_key) != -1)
545 * { 545 * {
546 * return -1; 546 * return -1;
547 * } 547 * }
548 */ 548 */
549 if (realloc_cryptoconnection(c, c->crypto_connections_length + 1) == -1) 549 if (realloc_cryptoconnection(c, c->crypto_connections_length + 1) == -1)
550 return -1; 550 return -1;
551 551