/*
* @todo - we might need to limit this to only one DNS label.
*/
- if ((parent->type == FR_TYPE_STRING) && !parent->flags.extra && parent->flags.subtype) {
+ if ((parent->type == FR_TYPE_STRING) && !parent->flags.extra &&
+ ((parent->flags.subtype == FLAG_ENCODE_DNS_LABEL) ||
+ (parent->flags.subtype == FLAG_ENCODE_PARTIAL_DNS_LABEL))) {
return decode_dns_labels(ctx, out, parent, data, data_len, decode_ctx);
}
}
fr_pair_append(out, vp);
- } else if ((da->type == FR_TYPE_STRING) && !da->flags.extra && da->flags.subtype) {
+
+ } else if ((da->type == FR_TYPE_STRING) && !da->flags.extra &&
+ ((da->flags.subtype == FLAG_ENCODE_DNS_LABEL) ||
+ (da->flags.subtype == FLAG_ENCODE_PARTIAL_DNS_LABEL))) {
fr_pair_list_t tmp;
fr_pair_list_init(&tmp);