diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-03-15 12:57:12 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-03-15 13:33:40 +0100 |
commit | f889e73f603dcf90b4db6a2065104a78c1a0e94d (patch) | |
tree | e70508fa8cde79e40fcc965f28eea7fdfc11916a /support/Makefile | |
parent | ed7d6072f25f75b808b40c206371361f1313f342 (diff) | |
download | glibc-f889e73f603dcf90b4db6a2065104a78c1a0e94d.tar.gz glibc-f889e73f603dcf90b4db6a2065104a78c1a0e94d.tar.xz glibc-f889e73f603dcf90b4db6a2065104a78c1a0e94d.zip |
support_format_dns_packet: Fix CNAME and multiple RR handling
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.
Diffstat (limited to 'support/Makefile')
-rw-r--r-- | support/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/support/Makefile b/support/Makefile index 2ace559ae0..db7bb130b2 100644 --- a/support/Makefile +++ b/support/Makefile @@ -111,6 +111,7 @@ endif tests = \ README-testing \ tst-support-namespace \ + tst-support_format_dns_packet \ tst-support_record_failure \ ifeq ($(run-built-tests),yes) @@ -125,4 +126,6 @@ $(objpfx)tst-support_record_failure-2.out: tst-support_record_failure-2.sh \ $(evaluate-test) endif +$(objpfx)tst-support_format_dns_packet: $(common-objpfx)resolv/libresolv.so + include ../Rules |