Skip to content

Commit

Permalink
we can only cast LHS of type attr from hex
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Jan 20, 2017
1 parent 8b1fa51 commit 9b8e8ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/map.c
Expand Up @@ -280,7 +280,8 @@ int map_afrom_cp(TALLOC_CTX *ctx, vp_map_t **out, CONF_PAIR *cp,
type = cf_pair_value_type(cp);

if ((type == T_BARE_WORD) && (value[0] == '0') && (tolower((int)value[1]) == 'x') &&
map_cast_from_hex(map, type, value)) {
(map->lhs->type == TMPL_TYPE_ATTR) &&
map_cast_from_hex(map, type, value)) {
/* do nothing */
} else {
slen = tmpl_afrom_str(map, &map->rhs, value, strlen(value), type, src_request_def, src_list_def, true);
Expand Down

0 comments on commit 9b8e8ed

Please sign in to comment.