]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Added tag to map
authorplambrechtsen <peter@crypt.co.nz>
Sat, 15 Aug 2015 22:12:06 +0000 (17:12 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 19 Aug 2015 04:17:30 +0000 (00:17 -0400)
src/main/map.c

index 0e10e2b082e8bd758545cfc055c31e79715f7430..74ff82e835c57dc3edcaba96b8896175bf55d39e 100644 (file)
@@ -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);