diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-08-04 19:46:14 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-08-04 20:29:48 +0200 |
commit | 402e1155e6ce6759cb382b68a95606d91755b5e3 (patch) | |
tree | 309e6256532cb34a174b505a165d9c82a487912b /src/timers.c | |
parent | netns: work around linux 3.10 issues (diff) | |
download | wireguard-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.c | 1 |
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); } |