From: Arran Cudbard-Bell Date: Sun, 12 May 2024 16:56:50 +0000 (-0600) Subject: Unload the radius.secret.verify xlat X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3782fe55db4edd51019b724afeef4d076ebcfbf6;p=thirdparty%2Ffreeradius-server.git Unload the radius.secret.verify xlat --- diff --git a/src/process/radius/base.c b/src/process/radius/base.c index 5d516abfee..b0e2c636ae 100644 --- a/src/process/radius/base.c +++ b/src/process/radius/base.c @@ -872,6 +872,11 @@ static int mod_load(void) return 0; } +static void mod_unload(void) +{ + xlat_func_unregister("radius.secret.verify"); +} + /* * rcodes not listed under a packet_type * mean that the packet code will not be @@ -1207,6 +1212,7 @@ fr_process_module_t process_radius = { .inst_size = sizeof(process_radius_t), .onload = mod_load, + .unload = mod_unload, .bootstrap = mod_bootstrap, .instantiate = mod_instantiate },