summaryrefslogtreecommitdiff
path: root/core/net_crypto.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-14 15:22:49 -0400
committerirungentoo <irungentoo@gmail.com>2013-07-14 15:22:49 -0400
commitf3dfeb607b31d14d1e93217b993848a1bb789b1d (patch)
treeba5d9cc9c8521b0ab23fb841a1fd46e95f7aaab6 /core/net_crypto.c
parent41d31e9802c86cc40621fdf7939083c6d79baf21 (diff)
Fixed useless inbound connection not timing out.
Diffstat (limited to 'core/net_crypto.c')
-rw-r--r--core/net_crypto.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/net_crypto.c b/core/net_crypto.c
index 2af5239b..faeb6be6 100644
--- a/core/net_crypto.c
+++ b/core/net_crypto.c
@@ -660,6 +660,9 @@ static void receive_crypto()
660 { 660 {
661 increment_nonce(crypto_connections[i].recv_nonce); 661 increment_nonce(crypto_connections[i].recv_nonce);
662 crypto_connections[i].status = 3; 662 crypto_connections[i].status = 3;
663
664 //connection is accepted so we disable the auto kill by setting it to about 1 month from now.
665 kill_connection_in(crypto_connections[i].number, 3000000);
663 } 666 }
664 else 667 else
665 { 668 {