Skip to content

Commit

Permalink
Need to use the length of the template name
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Feb 25, 2015
1 parent 6df616e commit ad0f891
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/map.c
Expand Up @@ -916,7 +916,8 @@ int map_to_request(REQUEST *request, value_pair_map_t const *map, radius_map_get

list = radius_list(context, map->lhs->tmpl_list);
if (!list) {
REDEBUG("Mapping \"%s\" -> \"%s\" invalid in this context", map->rhs->name, map->lhs->name);
REDEBUG("Mapping \"%.*s\" -> \"%.*s\" invalid in this context",
(int)map->rhs->len, map->rhs->name, (int)map->lhs->len, map->lhs->name);

return -2;
}
Expand Down

0 comments on commit ad0f891

Please sign in to comment.