Commit 5a5eec96 authored by Bob Halley's avatar Bob Halley
Browse files

remove ANY hack

parent 5a2f8733
......@@ -370,18 +370,12 @@ printquestions(dns_namelist_t *section) {
printf(";;\t%.*s, type = ", (int)target.used,
(char *)target.base);
isc_buffer_clear(&target);
if (rdatalist->type == 255) {
/* XXX HACK */
memcpy(target.base, "ANY", 3);
isc_buffer_add(&target, 3);
} else {
result = dns_rdatatype_totext(rdatalist->type,
&target);
if (result != DNS_R_SUCCESS) {
printf("%s\n",
dns_result_totext(result));
exit(16);
}
result = dns_rdatatype_totext(rdatalist->type,
&target);
if (result != DNS_R_SUCCESS) {
printf("%s\n",
dns_result_totext(result));
exit(16);
}
printf("%.*s, class = ", (int)target.used,
(char *)target.base);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment