From d058a59ccf7179a883813a5acba14569be20bf12 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Fri, 7 Mar 2014 16:05:08 -0500 Subject: Fixed some possible ways connections could linger indefinitely without being killed. --- toxcore/net_crypto.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'toxcore/net_crypto.c') diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 16a6784f..d2dbc90f 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c @@ -573,7 +573,11 @@ int crypto_inbound(Net_Crypto *c, uint8_t *public_key, uint8_t *secret_nonce, ui if (handle_cryptohandshake(c, public_key, secret_nonce, session_key, temp_data, len)) { return incoming_con; + } else { + kill_connection(c->lossless_udp, incoming_con); } + } else { + kill_connection(c->lossless_udp, incoming_con); } } else { break; -- cgit v1.2.3