diff options
author | irungentoo <irungentoo@gmail.com> | 2014-03-07 16:05:08 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-03-07 16:05:08 -0500 |
commit | d058a59ccf7179a883813a5acba14569be20bf12 (patch) | |
tree | 820c97d080fbb61cc691bdc3fd46dcf553e95553 /toxcore/net_crypto.c | |
parent | b451565f17a0423b4910d4c96df4f78816f02e60 (diff) |
Fixed some possible ways connections could linger indefinitely without being killed.
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r-- | toxcore/net_crypto.c | 4 |
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; |