Don't try showing unsupported ldns rdata fields

This commit is contained in:
Willem Toorop 2014-08-21 14:25:42 +02:00
parent ffe4d3d295
commit b4131d4540
1 changed files with 3 additions and 0 deletions

View File

@ -860,6 +860,9 @@ priv_getdns_equip_dict_with_rdfs(struct getdns_dict *rdata, ldns_rr *rr,
return priv_getdns_equip_dict_with_spf_rdfs(rdata, rr, def, context);
}
/* generic */
if (ldns_rr_rd_count(rr) != def->n_rdata_fields)
return r;
for (i = 0; i < ldns_rr_rd_count(rr) && r == GETDNS_RETURN_GOOD; i++) {
if (i >= def->n_rdata_fields)
break;