diff options
author | 2021-11-22 10:48:59 -0800 | |
---|---|---|
committer | 2022-06-10 18:58:50 +0200 | |
commit | 7658a19cb6a6a60544d84b99d3b27125897297cc (patch) | |
tree | 22248dd576e77c53df4e820222d77cdad3fcd22c | |
parent | if_wg: avoid scheduling excessive tasks for encryption/decryption (diff) | |
download | wireguard-freebsd-7658a19cb6a6a60544d84b99d3b27125897297cc.tar.xz wireguard-freebsd-7658a19cb6a6a60544d84b99d3b27125897297cc.zip |
if_wg: wg_module_init: clean up more if the self tests fail
Signed-off-by: John Baldwin <jhb@FreeBSD.org>
-rw-r--r-- | src/if_wg.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/if_wg.c b/src/if_wg.c index db93086..fffdf8d 100644 --- a/src/if_wg.c +++ b/src/if_wg.c @@ -3007,10 +3007,13 @@ wg_module_init(void) ret = ENOTRECOVERABLE; if (!wg_run_selftests()) - goto free_zone; + goto free_all; return (0); +free_all: + osd_jail_deregister(wg_osd_jail_slot); + cookie_deinit(); free_zone: uma_zdestroy(wg_packet_zone); free_none: |