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) {
if (msg->counts[DNS_SECTION_TSIG] > 0)
printf(";; PSEUDOSECTIONS: TSIG: %u\n",
msg->counts[DNS_SECTION_TSIG]);
result = printsection(msg, DNS_SECTION_QUESTION, "QUESTION");
if (result != DNS_R_SUCCESS)
return (result);
printf("\n");
if (msg->counts[DNS_SECTION_QUESTION] > 0) {
printf("\n");
result = printsection(msg, DNS_SECTION_QUESTION, "QUESTION");
if (result != DNS_R_SUCCESS)
return (result);
}
if (msg->counts[DNS_SECTION_ANSWER] > 0) {
printf("\n");
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