summaryrefslogtreecommitdiffhomepage
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
commit70e574e19b16134feef866b38b1593e6045a6708 (patch)
tree606325b2c4941b86f05605f53e0751982b328e91 /src/device.c
parente6165820f4f87da7f1b25aa105ccce5d00c623eb (diff)
timers: rename confusingly named functions and variables
Suggested-by: Mathias Hall-Andersen <mathias@hall-andersen.dk> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
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);