Skip to content

Commit

Permalink
make tmpl_verify() happy
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Jan 19, 2018
1 parent 0879867 commit 4487082
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/rlm_cache/rlm_cache.c
Expand Up @@ -400,6 +400,10 @@ static rlm_rcode_t cache_insert(rlm_cache_t const *inst, REQUEST *request, rlm_c
MEM(c_map->lhs = tmpl_init(talloc(c_map, vp_tmpl_t),
TMPL_TYPE_ATTR, map->lhs->name, map->lhs->len, T_BARE_WORD));
c_map->lhs->tmpl_da = vp->da;
if (vp->da->flags.is_unknown) { /* for tmpl_verify() */
memcpy(&c_map->lhs->tmpl_unknown, &vp->da, sizeof(vp->da)); /* const */
}

c_map->lhs->tmpl_tag = vp->tag;
c_map->lhs->tmpl_list = map->lhs->tmpl_list;
c_map->lhs->tmpl_num = map->lhs->tmpl_num;
Expand Down

0 comments on commit 4487082

Please sign in to comment.