aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/device.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-08-04 19:55:47 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-08-04 20:29:48 +0200
commit0bbfc1a8e31c126d0dfe6a64dd3168a0e8ac9ec0 (patch)
tree728e4193c389048ea56920136af035a305efeeb7 /src/device.c
parentreceive: move lastminute guard into timer event (diff)
downloadwireguard-monolithic-historical-0bbfc1a8e31c126d0dfe6a64dd3168a0e8ac9ec0.tar.xz
wireguard-monolithic-historical-0bbfc1a8e31c126d0dfe6a64dd3168a0e8ac9ec0.zip
timers: rename confusingly named functions and variables
Suggested-by: Mathias Hall-Andersen <mathias@hall-andersen.dk>
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c
index cb5517e..054ab18 100644
--- a/src/device.c
+++ b/src/device.c
@@ -79,7 +79,7 @@ static int suspending_clear_noise_peers(struct notifier_block *nb, unsigned long
noise_handshake_clear(&peer->handshake);
noise_keypairs_clear(&peer->keypairs);
if (peer->timers_enabled)
- del_timer(&peer->timer_kill_ephemerals);
+ del_timer(&peer->timer_zero_key_material);
}
}
rtnl_unlock();
@@ -99,7 +99,7 @@ static int stop(struct net_device *dev)
noise_handshake_clear(&peer->handshake);
noise_keypairs_clear(&peer->keypairs);
if (peer->timers_enabled)
- del_timer(&peer->timer_kill_ephemerals);
+ del_timer(&peer->timer_zero_key_material);
}
skb_queue_purge(&wg->incoming_handshakes);
socket_uninit(wg);