From 7da16febc40b81210544870beef5f7a89ebaa099 Mon Sep 17 00:00:00 2001 From: Ralph Dolmans Date: Wed, 29 Jan 2020 12:07:13 +0100 Subject: [PATCH] - Use consistent dname buffer sizes for RPZ --- services/rpz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/rpz.c b/services/rpz.c index 37ea2aa53..ca3f1bfe6 100644 --- a/services/rpz.c +++ b/services/rpz.c @@ -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) { -- 2.47.3