Commit f44644ab authored by Bob Halley's avatar Bob Halley
Browse files

dns_rdataset_totext() now adds CR after each question

parent c801dd02
...@@ -181,10 +181,12 @@ printmessage(dns_message_t *msg) { ...@@ -181,10 +181,12 @@ printmessage(dns_message_t *msg) {
if (msg->counts[DNS_SECTION_TSIG] > 0) if (msg->counts[DNS_SECTION_TSIG] > 0)
printf(";; PSEUDOSECTIONS: TSIG: %u\n", printf(";; PSEUDOSECTIONS: TSIG: %u\n",
msg->counts[DNS_SECTION_TSIG]); msg->counts[DNS_SECTION_TSIG]);
result = printsection(msg, DNS_SECTION_QUESTION, "QUESTION"); if (msg->counts[DNS_SECTION_QUESTION] > 0) {
if (result != DNS_R_SUCCESS) printf("\n");
return (result); result = printsection(msg, DNS_SECTION_QUESTION, "QUESTION");
printf("\n"); if (result != DNS_R_SUCCESS)
return (result);
}
if (msg->counts[DNS_SECTION_ANSWER] > 0) { if (msg->counts[DNS_SECTION_ANSWER] > 0) {
printf("\n"); printf("\n");
result = printsection(msg, DNS_SECTION_ANSWER, "ANSWER"); result = printsection(msg, DNS_SECTION_ANSWER, "ANSWER");
......
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