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

index 8e6794136ca25aaeb2100ce1ee742483a26f88a7..83e617c9a816ecb05f226bf31507f40cfa1ffca9 100644 (file)
@@ -2,6 +2,7 @@
        - Annotate that we ignore the return value of if_indextoname.
        - Fix to use correct type for label count in rpz routine.
        - Fix empty clause warning in config_file nsid parse.
+       - Fix to use correct type for label count in ipdnametoaddr rpz routine.
 
 26 January 2022: George
        - Merge PR #408 from fobser: Prevent a few more yacc clashes.
index c5216bc2d8c6fe9387e1628c2c1bc65fecadaace..3b5527adf430e77f434ff71f5ab51e3ef4507d06 100644 (file)
@@ -321,7 +321,7 @@ static int ipdnametoaddr(uint8_t* dname, size_t dnamelen,
        struct sockaddr_storage* addr, socklen_t* addrlen, int* af)
 {
        uint8_t* ia;
-       size_t dnamelabs = dname_count_labels(dname);
+       int dnamelabs = dname_count_labels(dname);
        uint8_t lablen;
        char* e = NULL;
        int z = 0;