]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix that msgencode insert_query has the correct assertion,
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 27 May 2026 10:20:04 +0000 (12:20 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 27 May 2026 10:20:04 +0000 (12:20 +0200)
  for a local_alias. Thanks to Qifan Zhang, Palo Alto Networks,
  for the report.

doc/Changelog
util/data/msgencode.c

index 186a5cd8d48cd4361ec2ee45326b85d4bdcbbe43..d13133d46f60f1cbcd494257bcd51899871488fa 100644 (file)
@@ -7,6 +7,9 @@
        - Fix that the ratelimit is decremented on successful
          referrals. Thanks to Qifan Zhang, Palo Alto Networks, for
          the report.
+       - Fix that msgencode insert_query has the correct assertion,
+         for a local_alias. Thanks to Qifan Zhang, Palo Alto Networks,
+         for the report.
 
 26 May 2026: Wouter
        - Fix for mesh new client and mesh new callback to rollback the
index dd56cc6aad6709fa973d7b159b32fc9d26292702..b1311111b51d982a67ac3a29ea51f1a850d706e1 100644 (file)
@@ -634,7 +634,7 @@ insert_query(struct query_info* qinfo, struct compress_tree_node** tree,
        size_t qname_len = qinfo->local_alias ?
                qinfo->local_alias->rrset->rk.dname_len : qinfo->qname_len;
        if(sldns_buffer_remaining(buffer) < 
-               qinfo->qname_len+sizeof(uint16_t)*2)
+               qname_len+sizeof(uint16_t)*2)
                return RETVAL_TRUNC; /* buffer too small */
        /* the query is the first name inserted into the tree */
        if(!compress_tree_store(qname, dname_count_labels(qname),