]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
If we find the module "trigger" subsection, use it
authorNick Porter <nick@portercomputing.co.uk>
Thu, 21 Aug 2025 17:24:16 +0000 (18:24 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 25 Aug 2025 13:56:09 +0000 (14:56 +0100)
src/lib/server/trigger.c

index 1182be92451b0916f758c51f39390322b47443c4..4d9738e3d9da9ac3f48edce9019ddfc6b0dc0cce 100644 (file)
@@ -172,10 +172,8 @@ int trigger(unlang_interpret_t *intp,
         *      module instances.
         */
        if (cs) {
-               CONF_SECTION const *subcs;
-
-               subcs = cf_section_find(cs, "trigger", NULL);
-               if (!subcs) goto use_global;
+               cs = cf_section_find(cs, "trigger", NULL);
+               if (!cs) goto use_global;
 
                /*
                 *      If a local trigger{...} section exists, then