diff options
author | Matt Dunwoodie <ncon@noconroy.net> | 2021-04-21 01:02:20 +1000 |
---|---|---|
committer | Matt Dunwoodie <ncon@noconroy.net> | 2021-04-21 01:02:55 +1000 |
commit | c493910bda9547436080993fb559b81c29242b99 (patch) | |
tree | 9371765b7807bc2d0bdf2dfb35223275422609a3 /src/wg_noise.h | |
parent | wg_noise: avoid handshake/keypair type confusion (diff) | |
download | wireguard-freebsd-c493910bda9547436080993fb559b81c29242b99.tar.xz wireguard-freebsd-c493910bda9547436080993fb559b81c29242b99.zip |
wg_noise: ensure we check peer count on hashtable insert
Signed-off-by: Matt Dunwoodie <ncon@noconroy.net>
Diffstat (limited to '')
-rw-r--r-- | src/wg_noise.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wg_noise.h b/src/wg_noise.h index aa52e8e..8d7b54e 100644 --- a/src/wg_noise.h +++ b/src/wg_noise.h @@ -46,7 +46,7 @@ int noise_local_keys(struct noise_local *, struct noise_remote * noise_remote_alloc(struct noise_local *, void *, const uint8_t[NOISE_PUBLIC_KEY_LEN]); -void noise_remote_enable(struct noise_remote *); +int noise_remote_enable(struct noise_remote *); void noise_remote_disable(struct noise_remote *); struct noise_remote * noise_remote_lookup(struct noise_local *, const uint8_t[NOISE_PUBLIC_KEY_LEN]); |