From: Arran Cudbard-Bell Date: Sat, 16 May 2015 03:50:14 +0000 (-0400) Subject: Fix map_to_request VP parenting X-Git-Tag: release_3_0_9~348 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=275d34d1f1f3c9f5f85a53a7942769271e4462ad;p=thirdparty%2Ffreeradius-server.git Fix map_to_request VP parenting --- diff --git a/src/main/map.c b/src/main/map.c index b7d8c24bbe8..3768f116ade 100644 --- a/src/main/map.c +++ b/src/main/map.c @@ -1099,7 +1099,7 @@ int map_to_request(REQUEST *request, vp_map_t const *map, radius_map_getvalue_t * VPs to work with. */ if (map->rhs->type != TMPL_TYPE_NULL) { - rcode = func(request, &head, request, map, ctx); + rcode = func(parent, &head, request, map, ctx); if (rcode < 0) { rad_assert(!head); return rcode; @@ -1113,7 +1113,7 @@ int map_to_request(REQUEST *request, vp_map_t const *map, radius_map_getvalue_t } /* - * Reparent the VPs (func may return multiple) + * Print the VPs */ for (vp = fr_cursor_init(&src_list, &head); vp; @@ -1121,7 +1121,6 @@ int map_to_request(REQUEST *request, vp_map_t const *map, radius_map_getvalue_t VERIFY_VP(vp); if (rad_debug_lvl) map_debug_log(request, map, vp); - pairsteal(parent, vp); } /*