]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Use consistent dname buffer sizes for RPZ
authorRalph Dolmans <ralph@nlnetlabs.nl>
Wed, 29 Jan 2020 11:07:13 +0000 (12:07 +0100)
committerRalph Dolmans <ralph@nlnetlabs.nl>
Wed, 29 Jan 2020 11:07:13 +0000 (12:07 +0100)
services/rpz.c

index 37ea2aa5395030855363c009fb89108ccdaf22e6..ca3f1bfe6e653ba1b14ebaac321ef94f2bcdeddf 100644 (file)
@@ -647,7 +647,7 @@ rpz_find_zone(struct rpz* r, uint8_t* qname, size_t qname_len, uint16_t qclass,
 {
        uint8_t* ce;
        size_t ce_len, ce_labs;
-       uint8_t wc[LDNS_MAX_DOMAINLEN];
+       uint8_t wc[LDNS_MAX_DOMAINLEN+1];
        int exact;
        struct local_zone* z = NULL;
        if(wr) {