]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Missing subsection search entry for "refresh" cache method (#4009)
authorTerry Burton <tez@terryburton.co.uk>
Fri, 19 Mar 2021 23:30:37 +0000 (23:30 +0000)
committerGitHub <noreply@github.com>
Fri, 19 Mar 2021 23:30:37 +0000 (23:30 +0000)
src/main/modules.c

index 87ea0eab1a61b1af9528e0e0ef4dfd1980cd93d6..6c2d2a7843f7ad588cfdfc39dbb5737d491521f8 100644 (file)
@@ -1404,6 +1404,14 @@ static int load_byserver(CONF_SECTION *cs)
                                                        MOD_POST_AUTH)) {
                        goto error; /* FIXME: memleak? */
                }
+
+               subcs = cf_section_sub_find_name2(cs, "cache", "refresh");
+               if (subcs && !load_subcomponent_section(subcs,
+                                                       components,
+                                                       da,
+                                                       MOD_POST_AUTH)) {
+                       goto error; /* FIXME: memleak? */
+               }
 #endif
 
 #ifdef WITH_DHCP