From: Philippe Wooding Date: Wed, 6 May 2015 16:12:19 +0000 (+0200) Subject: Bug fix: when adding a list of VPs to and existing list, the operators weren't proces... X-Git-Tag: release_3_0_9~290 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=446252ae66f3801fec62ec5e254c461adce97928;p=thirdparty%2Ffreeradius-server.git Bug fix: when adding a list of VPs to and existing list, the operators weren't processed as they should be. --- diff --git a/src/main/map.c b/src/main/map.c index 9c75df93033..036dbc3cdbf 100644 --- a/src/main/map.c +++ b/src/main/map.c @@ -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;