From: W.C.A. Wijngaards Date: Tue, 4 Jun 2019 14:58:04 +0000 (+0200) Subject: * Fix that ldns-notify sets the query RR as question RR, this X-Git-Tag: release-1.7.1-rc1~24^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d4729cd5c094db00ded8391b33cca8094cf3b4c;p=thirdparty%2Fldns.git * Fix that ldns-notify sets the query RR as question RR, this removes the wrong TTL and 0 rdata from the packet printout. --- diff --git a/Changelog b/Changelog index 2204f6d1..1ee60dd2 100644 --- 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. diff --git a/examples/ldns-notify.c b/examples/ldns-notify.c index 8e95e0cd..f98931b0 100644 --- a/examples/ldns-notify.c +++ b/examples/ldns-notify.c @@ -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);