From: Nick Porter Date: Fri, 25 Sep 2020 10:48:29 +0000 (+0100) Subject: Use fr_pair_prepend in map_to_request X-Git-Tag: release_3_0_22~368 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa35973b3f101ce657ba124f86796676c445efd9;p=thirdparty%2Ffreeradius-server.git Use fr_pair_prepend in map_to_request --- diff --git a/src/main/map.c b/src/main/map.c index 6275ba124de..11a74fcba22 100644 --- a/src/main/map.c +++ b/src/main/map.c @@ -1341,6 +1341,14 @@ int map_to_request(REQUEST *request, vp_map_t const *map, radius_map_getvalue_t fr_pair_list_free(&head); break; + /* + * ^= - Prepend src_list attributes to the destination + */ + case T_OP_PREPEND: + fr_pair_prepend(list, head); + head = NULL; + break; + /* * += - Add all src_list attributes to the destination */