]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Unload the radius.secret.verify xlat
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 12 May 2024 16:56:50 +0000 (10:56 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 12 May 2024 17:15:08 +0000 (11:15 -0600)
src/process/radius/base.c

index 5d516abfeec68720e188151c38ec7c7d2c0368da..b0e2c636aeaa451717f9b9e6987424c6bbbb872f 100644 (file)
@@ -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
        },