diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-25 23:16:44 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-27 03:11:31 +0200 |
commit | b72b3ba908e5686879242daf0b23b85c807b5586 (patch) | |
tree | a47a79c786318d6c7e4ee9098c6138b05e63548a /src/peer.c | |
parent | allowedips: fix sparse warnings in optional selftests (diff) | |
download | wireguard-monolithic-historical-b72b3ba908e5686879242daf0b23b85c807b5586.tar.xz wireguard-monolithic-historical-b72b3ba908e5686879242daf0b23b85c807b5586.zip |
timers: do not use wg_peer_get_maybe_zero
peer_remove calls sets is_dead to true and calls timers_stop before putting
the last reference, which means whenever timers do actually trigger,
they should only trigger with a reference, and therefore we don't need
the maybe_zero dance. This also narrows the scope of using maybe_zero to
just be lookup structures (the two hashtables and allowedips), which is
what the idiom is actually meant for.
Diffstat (limited to 'src/peer.c')
0 files changed, 0 insertions, 0 deletions