aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/timers.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-08-04 19:46:14 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-08-04 20:29:48 +0200
commit402e1155e6ce6759cb382b68a95606d91755b5e3 (patch)
tree309e6256532cb34a174b505a165d9c82a487912b /src/timers.c
parentnetns: work around linux 3.10 issues (diff)
downloadwireguard-monolithic-historical-402e1155e6ce6759cb382b68a95606d91755b5e3.tar.xz
wireguard-monolithic-historical-402e1155e6ce6759cb382b68a95606d91755b5e3.zip
receive: move lastminute guard into timer event
Suggested-by: Mathias Hall-Andersen <mathias@hall-andersen.dk>
Diffstat (limited to 'src/timers.c')
-rw-r--r--src/timers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/timers.c b/src/timers.c
index 9a7b593..9dc4ae0 100644
--- a/src/timers.c
+++ b/src/timers.c
@@ -136,6 +136,7 @@ void timers_handshake_complete(struct wireguard_peer *peer)
if (likely(peer->timers_enabled))
del_timer(&peer->timer_retransmit_handshake);
peer->timer_handshake_attempts = 0;
+ peer->sent_lastminute_handshake = false;
do_gettimeofday(&peer->walltime_last_handshake);
}