From: Terry Burton Date: Fri, 9 Dec 2022 13:12:17 +0000 (+0000) Subject: rest: Duplicate the pool section (#4825) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7a13f802b0495ccb4630754e37adb9534055551;p=thirdparty%2Ffreeradius-server.git rest: Duplicate the pool section (#4825) --- diff --git a/src/modules/rlm_rest/rlm_rest.c b/src/modules/rlm_rest/rlm_rest.c index a5745d6c791..dba52c97e60 100644 --- a/src/modules/rlm_rest/rlm_rest.c +++ b/src/modules/rlm_rest/rlm_rest.c @@ -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); }