diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-14 15:22:49 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-14 15:22:49 -0400 |
commit | f3dfeb607b31d14d1e93217b993848a1bb789b1d (patch) | |
tree | ba5d9cc9c8521b0ab23fb841a1fd46e95f7aaab6 /core/net_crypto.c | |
parent | 41d31e9802c86cc40621fdf7939083c6d79baf21 (diff) |
Fixed useless inbound connection not timing out.
Diffstat (limited to 'core/net_crypto.c')
-rw-r--r-- | core/net_crypto.c | 3 |
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 | { |