aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/timers.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-25 17:56:08 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-31 17:25:23 +0100
commite09ec4dc2af38fb44add2fac518a726ae605b400 (patch)
tree950512f15664d121e92677ec1c35a5b1b1b870dc /src/timers.c
parentqemu: work around ccache bugs (diff)
downloadwireguard-monolithic-historical-e09ec4dc2af38fb44add2fac518a726ae605b400.tar.xz
wireguard-monolithic-historical-e09ec4dc2af38fb44add2fac518a726ae605b400.zip
global: style nits
Diffstat (limited to 'src/timers.c')
-rw-r--r--src/timers.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/timers.c b/src/timers.c
index 53a082b..17610b6 100644
--- a/src/timers.c
+++ b/src/timers.c
@@ -40,11 +40,13 @@ static void expired_retransmit_handshake(unsigned long ptr)
if (likely(timers_active(peer)))
del_timer(&peer->timer_send_keepalive);
/* We drop all packets without a keypair and don't try again,
- * if we try unsuccessfully for too long to make a handshake. */
+ * if we try unsuccessfully for too long to make a handshake.
+ */
skb_queue_purge(&peer->staged_packet_queue);
/* We set a timer for destroying any residue that might be left
- * of a partial exchange. */
+ * of a partial exchange.
+ */
if (likely(timers_active(peer)) && !timer_pending(&peer->timer_zero_key_material))
mod_timer(&peer->timer_zero_key_material, jiffies + (REJECT_AFTER_TIME * 3));
} else {