From: W.C.A. Wijngaards Date: Thu, 28 Jan 2021 08:14:19 +0000 (+0100) Subject: - Fix to use correct type for label count in ipdnametoaddr rpz routine. X-Git-Tag: release-1.13.1rc1~1^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a19ceaae67fc0d33dd79a3057834f1f54d2999c;p=thirdparty%2Funbound.git - Fix to use correct type for label count in ipdnametoaddr rpz routine. --- diff --git a/doc/Changelog b/doc/Changelog index 8e6794136..83e617c9a 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. diff --git a/util/net_help.c b/util/net_help.c index c5216bc2d..3b5527adf 100644 --- a/util/net_help.c +++ b/util/net_help.c @@ -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;