]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Allocate from the correct ctx in subrequest.c
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 14 Nov 2020 00:57:08 +0000 (18:57 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 14 Nov 2020 00:57:28 +0000 (18:57 -0600)
src/lib/unlang/subrequest.c

index e33b7e90013d81ae5332ead31f6fd1833459e819..ec619caf1250cddeea573cb9f998749ca1f918bb 100644 (file)
@@ -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);