about summary refs log tree commit diff
path: root/support/tst-support_format_dns_packet.c
Commit message (Collapse)AuthorAgeFilesLines
* Another round of inclusion fixes for _ISOMAC testsuite.Zack Weinberg2017-03-221-0/+4
| | | | | | | | | * stdio-common/bug25.c: Include stdlib.h. * support/tst-support_format_dns_packet.c: Include stdio.h, stdlib.h, and string.h. * support/tst-support_record_failure.c: Include string.h. * support/tst-support_record_failure-2.sh: Adjust line number expectations and correct a typo in an error message.
* support_format_dns_packet: Fix CNAME and multiple RR handlingFlorian Weimer2017-03-151-0/+97
Before this change, the loop iterating over RRs in the answer section stopped at the first CNAME record, never printing them. The CNAME and PTR record contents was extracted from the wrong buffer (whole packet instead RDATA). This desynced the parsing after the first CNAME or PTR record. Also fix the AAAA record parsing by checking their sizes.