wireguard-tools/src
Kyle Evans 139aac59a5 ipc: freebsd: NULL out some freed memory in kernel_set_device()
The `err` path in kernel_set_device() will attempt to free() allocated
nvl_peers, but these two cases meant we could end up attempting a use
after free or a double free, as we rely on nvlist_destroy(NULL) being
a NOP as well as free(NULL).

FreeBSD-Coverity:	1500421
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-11-03 19:57:26 +01:00
..
completion completion: add help and syncconf completions 2020-12-13 22:29:09 +01:00
fuzz netlink: remove libmnl requirement 2020-02-03 18:17:27 +01:00
man man: mention BSD debugging 2021-05-06 12:54:29 +02:00
systemd systemd: add reload target to systemd unit 2020-07-24 16:23:47 +02:00
uapi ipc: freebsd: move if_wg path to reflect new in-tree location 2022-10-29 03:51:47 +02:00
wg-quick wg-quick: linux: prevent traffic from momentarily leaking into tunnel 2022-06-17 13:53:43 +02:00
wincompat ipc: use more clever PnP enumerator 2021-10-06 17:18:40 -06:00
Makefile ipc: use more clever PnP enumerator 2021-10-06 17:18:40 -06:00
config.c global: dual license core files as MIT for FreeBSD 2022-06-10 19:35:38 +02:00
config.h global: dual license core files as MIT for FreeBSD 2022-06-10 19:35:38 +02:00
containers.h global: dual license core files as MIT for FreeBSD 2022-06-10 19:35:38 +02:00
ctype.h global: dual license core files as MIT for FreeBSD 2022-06-10 19:35:38 +02:00
curve25519-fiat32.h global: bump copyright 2020-01-02 19:52:25 +01:00
curve25519-hacl64.h global: bump copyright 2020-01-02 19:52:25 +01:00
curve25519.c global: dual license core files as MIT for FreeBSD 2022-06-10 19:35:38 +02:00
curve25519.h global: dual license core files as MIT for FreeBSD 2022-06-10 19:35:38 +02:00
encoding.c global: dual license core files as MIT for FreeBSD 2022-06-10 19:35:38 +02:00
encoding.h global: dual license core files as MIT for FreeBSD 2022-06-10 19:35:38 +02:00
genkey.c global: dual license core files as MIT for FreeBSD 2022-06-10 19:35:38 +02:00
ipc-freebsd.h ipc: freebsd: NULL out some freed memory in kernel_set_device() 2022-11-03 19:57:26 +01:00
ipc-linux.h ipc: split into separate files per-platform 2020-05-25 17:21:18 -06:00
ipc-openbsd.h ipc: add wireguard-nt support 2021-07-20 13:24:18 +02:00
ipc-uapi-unix.h ipc: split into separate files per-platform 2020-05-25 17:21:18 -06:00
ipc-uapi-windows.h ipc: remove windows elevation 2021-07-20 13:24:18 +02:00
ipc-uapi.h ipc: read trailing responses after set operation 2021-01-27 15:22:20 +01:00
ipc-windows.h ipc: use more clever PnP enumerator 2021-10-06 17:18:40 -06:00
ipc.c global: dual license core files as MIT for FreeBSD 2022-06-10 19:35:38 +02:00
ipc.h global: dual license core files as MIT for FreeBSD 2022-06-10 19:35:38 +02:00
netlink.h netlink: initialize mostly unused field 2020-02-06 17:20:15 +01:00
pubkey.c global: dual license core files as MIT for FreeBSD 2022-06-10 19:35:38 +02:00
set.c global: dual license core files as MIT for FreeBSD 2022-06-10 19:35:38 +02:00
setconf.c global: dual license core files as MIT for FreeBSD 2022-06-10 19:35:38 +02:00
show.c show: apply const to right part of pointer 2022-10-31 15:39:30 +01:00
showconf.c global: dual license core files as MIT for FreeBSD 2022-06-10 19:35:38 +02:00
subcommands.h global: dual license core files as MIT for FreeBSD 2022-06-10 19:35:38 +02:00
terminal.c global: dual license core files as MIT for FreeBSD 2022-06-10 19:35:38 +02:00
terminal.h global: dual license core files as MIT for FreeBSD 2022-06-10 19:35:38 +02:00
version.h version: bump 2021-09-14 00:43:31 +02:00
wg.c global: dual license core files as MIT for FreeBSD 2022-06-10 19:35:38 +02:00