]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use fr_pair_prepend in map_to_request
authorNick Porter <nick@portercomputing.co.uk>
Fri, 25 Sep 2020 10:48:29 +0000 (11:48 +0100)
committerAlan DeKok <aland@freeradius.org>
Wed, 14 Oct 2020 14:53:37 +0000 (10:53 -0400)
src/main/map.c

index 6275ba124ded76bce46726232d8920c060308ed0..11a74fcba229175415b342498e4c04b019a78080 100644 (file)
@@ -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
         */