From: plambrechtsen Date: Sat, 15 Aug 2015 22:12:06 +0000 (-0500) Subject: Added tag to map X-Git-Tag: release_3_0_10~234 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ab34f2439eac2158a743998e1faaf33c0fed3c5;p=thirdparty%2Ffreeradius-server.git Added tag to map --- diff --git a/src/main/map.c b/src/main/map.c index 0e10e2b082e..74ff82e835c 100644 --- a/src/main/map.c +++ b/src/main/map.c @@ -814,6 +814,7 @@ int map_to_vp(TALLOC_CTX *ctx, VALUE_PAIR **out, REQUEST *request, vp_map_t cons goto error; } new->op = map->op; + new->tag = map->lhs->tmpl_tag; *out = new; break; @@ -838,6 +839,7 @@ int map_to_vp(TALLOC_CTX *ctx, VALUE_PAIR **out, REQUEST *request, vp_map_t cons goto error; } new->op = map->op; + new->tag = map->lhs->tmpl_tag; *out = new; break; @@ -853,6 +855,7 @@ int map_to_vp(TALLOC_CTX *ctx, VALUE_PAIR **out, REQUEST *request, vp_map_t cons goto error; } new->op = map->op; + new->tag = map->lhs->tmpl_tag; *out = new; break; @@ -901,6 +904,7 @@ int map_to_vp(TALLOC_CTX *ctx, VALUE_PAIR **out, REQUEST *request, vp_map_t cons } new->op = map->op; + new->tag = map->lhs->tmpl_tag; fr_cursor_insert(&to, new); } return 0; @@ -913,6 +917,7 @@ int map_to_vp(TALLOC_CTX *ctx, VALUE_PAIR **out, REQUEST *request, vp_map_t cons for (; vp; vp = fr_cursor_next(&from)) { vp->da = map->lhs->tmpl_da; vp->op = map->op; + vp->tag = map->lhs->tmpl_tag; } *out = found; } @@ -932,6 +937,7 @@ int map_to_vp(TALLOC_CTX *ctx, VALUE_PAIR **out, REQUEST *request, vp_map_t cons new->vp_length = len; new->op = map->op; + new->tag = map->lhs->tmpl_tag; *out = new; VERIFY_MAP(map);