From 9e6f8567ded09f432842afd96b9fb0a160e037c0 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Thu, 28 Jan 2021 09:07:16 +0100 Subject: [PATCH] - Fix to use correct type for label count in rpz routine. --- doc/Changelog | 1 + services/rpz.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/Changelog b/doc/Changelog index 268d51ff2..f6d32249b 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,6 @@ 28 January 2022: Wouter - Annotate that we ignore the return value of if_indextoname. + - Fix to use correct type for label count in rpz routine. 26 January 2022: George - Merge PR #408 from fobser: Prevent a few more yacc clashes. diff --git a/services/rpz.c b/services/rpz.c index d7dd17f7e..2b6b0ac3f 100644 --- a/services/rpz.c +++ b/services/rpz.c @@ -668,7 +668,8 @@ rpz_find_zone(struct rpz* r, uint8_t* qname, size_t qname_len, uint16_t qclass, int only_exact, int wr, int zones_keep_lock) { uint8_t* ce; - size_t ce_len, ce_labs; + size_t ce_len; + int ce_labs; uint8_t wc[LDNS_MAX_DOMAINLEN+1]; int exact; struct local_zone* z = NULL; -- 2.47.2