aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/Makefile
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-10-25 23:16:44 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-10-27 03:11:31 +0200
commitb72b3ba908e5686879242daf0b23b85c807b5586 (patch)
treea47a79c786318d6c7e4ee9098c6138b05e63548a /src/Makefile
parentallowedips: fix sparse warnings in optional selftests (diff)
downloadwireguard-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 '')
0 files changed, 0 insertions, 0 deletions