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 | 8126e28024f5b34d1e97ac377040655e4d2b23a9 (patch) | |
tree | cc236967becd92de8cf85d60931f98f4e571e619 /src/messages.h | |
parent | 377d89defdacecbf28be3bf58d8fb001930c5e15 (diff) |
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.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/messages.h')
0 files changed, 0 insertions, 0 deletions