From: W.C.A. Wijngaards Date: Thu, 28 Jan 2021 08:07:16 +0000 (+0100) Subject: - Fix to use correct type for label count in rpz routine. X-Git-Tag: release-1.13.1rc1~1^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e6f8567ded09f432842afd96b9fb0a160e037c0;p=thirdparty%2Funbound.git - Fix to use correct type for label count in rpz routine. --- 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;