From: Arran Cudbard-Bell Date: Sat, 14 Nov 2020 00:57:08 +0000 (-0600) Subject: Allocate from the correct ctx in subrequest.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ba34987decdb7dc7c81a5c0bc55bce719bedbbb;p=thirdparty%2Ffreeradius-server.git Allocate from the correct ctx in subrequest.c --- diff --git a/src/lib/unlang/subrequest.c b/src/lib/unlang/subrequest.c index e33b7e90013..ec619caf125 100644 --- a/src/lib/unlang/subrequest.c +++ b/src/lib/unlang/subrequest.c @@ -140,7 +140,7 @@ static unlang_action_t unlang_subrequest_process(rlm_rcode_t *p_result, request_ /* * Find out what we need to build and build it */ - if ((tmpl_extents_find(gext, &leaf, &interior, request, gext->dst) < 0) || + if ((tmpl_extents_find(state, &leaf, &interior, request, gext->dst) < 0) || (tmpl_extents_build_to_leaf(&leaf, &interior, gext->dst) < 0)) { RPDEBUG("Discarding subrequest attributes - Failed allocating groups"); fr_dlist_talloc_free(&leaf);