break;
case COND_TYPE_MAP:
- if (tmpl_rules_cast(c->data.map->lhs)) {
- FR_SBUFF_IN_SPRINTF_RETURN(&our_out, "<%s>",
- fr_type_to_str(tmpl_rules_cast(c->data.map->lhs)));
- }
FR_SBUFF_RETURN(map_print, &our_out, c->data.map);
break;
/*
* Print the lhs
*/
+ if (tmpl_rules_cast(map->lhs)) {
+ FR_SBUFF_IN_SPRINTF_RETURN(&our_out, "<%s>",
+ fr_type_to_str(tmpl_rules_cast(map->lhs)));
+ }
FR_SBUFF_RETURN(tmpl_print_quoted, &our_out, map->lhs, TMPL_ATTR_REF_PREFIX_YES);
/*
return 0;
}
+ if (tmpl_rules_cast(map->rhs)) {
+ FR_SBUFF_IN_SPRINTF_RETURN(&our_out, "<%s>",
+ fr_type_to_str(tmpl_rules_cast(map->rhs)));
+ }
+
/*
* Print the RHS.
*/