]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix to use correct type for label count in rpz routine.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 28 Jan 2021 08:07:16 +0000 (09:07 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 28 Jan 2021 08:07:16 +0000 (09:07 +0100)
doc/Changelog
services/rpz.c

index 268d51ff2e3ca776f27a77dce9cdb65ea5ff439e..f6d32249b19403ae0f6a2ec67e3539c7370b24cf 100644 (file)
@@ -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.
index d7dd17f7e454c2312d844bb283d8d139ad46af72..2b6b0ac3fccfa1f10e126eb302353994a4ca624d 100644 (file)
@@ -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;