]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
* Fix that ldns-notify sets the query RR as question RR, this
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 4 Jun 2019 14:58:04 +0000 (16:58 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 4 Jun 2019 14:58:04 +0000 (16:58 +0200)
  removes the wrong TTL and 0 rdata from the packet printout.

Changelog
examples/ldns-notify.c

index 2204f6d1f947cb4b5ecc4cc53249467c318f59f6..1ee60dd2c67dcb665a614176c74daa643383baa2 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -38,6 +38,8 @@
        * ldns-notify: can have IPv6 address as argument.
        * Fix time sensitive TSIG compare vulnerability.
        * Fix that ldns-testns ignores sigpipe.
+       * Fix that ldns-notify sets the query RR as question RR, this
+         removes the wrong TTL and 0 rdata from the packet printout.
 
 1.7.0  2016-12-20
        * Fix lookup of relative names in ldns_resolver_search.
index 8e95e0cd8c8df949b9411c05b61d689381fc1f57..f98931b052e7f65224ca265eb1cf867e4795ff4b 100644 (file)
@@ -290,6 +290,7 @@ main(int argc, char **argv)
        ldns_rr_set_class(question, LDNS_RR_CLASS_IN);
        ldns_rr_set_owner(question, ldns_zone_name);
        ldns_rr_set_type(question, LDNS_RR_TYPE_SOA);
+       ldns_rr_set_question(question, true);
        ldns_pkt_set_opcode(notify, LDNS_PACKET_NOTIFY);
        ldns_pkt_push_rr(notify, LDNS_SECTION_QUESTION, question);
        ldns_pkt_set_aa(notify, true);