]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Correct creation of talloc pool for parsed mod_env
authorNick Porter <nick@portercomputing.co.uk>
Mon, 13 Mar 2023 08:27:05 +0000 (08:27 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 13 Mar 2023 08:27:05 +0000 (08:27 +0000)
src/lib/unlang/compile.c

index 819306ac6de9e717b6f12bbac20378272ea48d80..2b6f6b92d8ff4b21bed2a47e994cb4eba8541d0f 100644 (file)
@@ -4886,7 +4886,7 @@ static unlang_t *compile_module(unlang_t *parent, unlang_compile_t *unlang_ctx,
                 *      for which we allow twice the length of the value to be parsed.
                 */
                count = method_env_count(&vallen, inst->dl_inst->conf, method_env->env);
-               MEM(single->mod_env_ctx = talloc_zero_pooled_object(single, TALLOC_CTX *, count * 4,
+               MEM(single->mod_env_ctx = _talloc_pooled_object(single, 0, "mod_env_ctx", count * 4,
                                                (sizeof(module_env_parsed_t) + sizeof(tmpl_t)) * count + vallen * 2));
 
                mod_env_parsed_init(&single->mod_env_parsed);