Bug fix: when adding a list of VPs to and existing list, the operators weren't proces...
authorPhilippe Wooding <philippe.wooding@networkradius.com>
Wed, 6 May 2015 16:12:19 +0000 (18:12 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 2 Jun 2015 18:35:58 +0000 (14:35 -0400)
src/main/map.c

index 9c75df9..036dbc3 100644 (file)
@@ -1149,16 +1149,12 @@ int map_to_request(REQUEST *request, vp_map_t const *map, radius_map_getvalue_t
                        } else {
                case T_OP_EQ:
                                rad_assert(map->rhs->type == TMPL_TYPE_EXEC);
+               case T_OP_ADD:
                                pairmove(parent, list, &head);
                                pairfree(&head);
                        }
                        goto finish;
 
-               case T_OP_ADD:
-                       pairadd(list, head);
-                       head = NULL;
-                       goto finish;
-
                default:
                        pairfree(&head);
                        return -1;