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.c4
1 files changed, 4 insertions, 0 deletions
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
573 573
574 if (handle_cryptohandshake(c, public_key, secret_nonce, session_key, temp_data, len)) { 574 if (handle_cryptohandshake(c, public_key, secret_nonce, session_key, temp_data, len)) {
575 return incoming_con; 575 return incoming_con;
576 } else {
577 kill_connection(c->lossless_udp, incoming_con);
576 } 578 }
579 } else {
580 kill_connection(c->lossless_udp, incoming_con);
577 } 581 }
578 } else { 582 } else {
579 break; 583 break;