aboutsummaryrefslogtreecommitdiffstats
path: root/src/wg_noise.c
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@noconroy.net>2021-04-21 01:25:05 +1000
committerMatt Dunwoodie <ncon@noconroy.net>2021-04-21 03:44:11 +1000
commit5d509153a519081b69bd68cb9c9af3919173b9f0 (patch)
tree9fedbae49cbda37b05ec8ecc77d42494af4cc5e0 /src/wg_noise.c
parentwg_noise: unify two state bools to an enum (diff)
downloadwireguard-freebsd-5d509153a519081b69bd68cb9c9af3919173b9f0.tar.xz
wireguard-freebsd-5d509153a519081b69bd68cb9c9af3919173b9f0.zip
if_wg: minor code cleanup, improve readability
Nothing serious here, just use a goto in wg_deliver_{in,out} rather than another if/else indentation. The code should have no functional change, just improve readability. Additionally, use a local `sc` variable rather than `peer->p_sc` in spots. Signed-off-by: Matt Dunwoodie <ncon@noconroy.net>
Diffstat (limited to 'src/wg_noise.c')
0 files changed, 0 insertions, 0 deletions