]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
rest: Duplicate the pool section (#4825)
authorTerry Burton <tez@terryburton.co.uk>
Fri, 9 Dec 2022 13:12:17 +0000 (13:12 +0000)
committerGitHub <noreply@github.com>
Fri, 9 Dec 2022 13:12:17 +0000 (07:12 -0600)
src/modules/rlm_rest/rlm_rest.c

index a5745d6c79104c00d0b0ad565b80f27b8a630ba6..dba52c97e606761632488874b19d1dcc820bb986 100644 (file)
@@ -1112,7 +1112,7 @@ static int mod_thread_instantiate(module_thread_inst_ctx_t const *mctx)
         *      thread safe.
         */
        if ((pool = cf_section_find(conf, "pool", NULL))) {
-               my_conf = cf_section_dup(NULL, NULL, conf, cf_section_name1(pool), cf_section_name2(pool), true);
+               my_conf = cf_section_dup(NULL, NULL, pool, cf_section_name1(pool), cf_section_name2(pool), true);
        } else {
                my_conf = cf_section_alloc(NULL, NULL, "pool", NULL);
        }