]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fix #820: set sldns_str2wire_rr_buf() dual meaning len parameter
authorRalph Dolmans <ralph@nlnetlabs.nl>
Wed, 24 Aug 2016 09:18:38 +0000 (09:18 +0000)
committerRalph Dolmans <ralph@nlnetlabs.nl>
Wed, 24 Aug 2016 09:18:38 +0000 (09:18 +0000)
in each iteration in find_tag_datas().

git-svn-id: file:///svn/unbound/trunk@3832 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/localzone.c

index bf5264231d1ae550cb165b4158938d38c7cb67da..02310848e7141daeb9a2e06efbcd9a67d1866c95 100644 (file)
@@ -1,3 +1,7 @@
+24 August 2016: Ralph
+       - Fix #820: set sldns_str2wire_rr_buf() dual meaning len parameter
+         in each iteration in find_tag_datas().
+         
 23 August 2016: Wouter
        - Fix #804: unbound stops responding after outage.  Fixes queries
          that attempt to wait for an empty list of subqueries.
index a2948a5eb0f45b7af1a09c3c1a0d4414ca4ec156..aeea2c6f52b4a6dd3384ba0a830ec6595be251af 100644 (file)
@@ -1186,10 +1186,11 @@ find_tag_datas(struct query_info* qinfo, struct config_strlist* list,
        struct config_strlist* p;
        char buf[65536];
        uint8_t rr[LDNS_RR_BUF_SIZE];
-       size_t len = sizeof(rr);
+       size_t len;
        int res;
        struct packed_rrset_data* d;
        for(p=list; p; p=p->next) {
+               len = sizeof(rr);
                /* does this element match the type? */
                snprintf(buf, sizeof(buf), ". %s", p->str);
                res = sldns_str2wire_rr_buf(buf, rr, &len, NULL, 3600,