From: Ralph Dolmans Date: Wed, 15 Jan 2020 22:19:24 +0000 (+0100) Subject: - Fix faulty assert X-Git-Tag: release-1.10.0rc1~28^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=627285af23f77be115a29aeda296b694d332f0e8;p=thirdparty%2Funbound.git - Fix faulty assert --- diff --git a/util/net_help.c b/util/net_help.c index 2b624be8f..21367ebd9 100644 --- a/util/net_help.c +++ b/util/net_help.c @@ -342,7 +342,7 @@ static int ipdnametoaddr(uint8_t* dname, size_t dnamelen, ia[i] = (uint8_t)chunk; i--; } else { - log_assert(i < 15 && i >= 1); + log_assert(i < 16 && i >= 1); /* ia in network byte order */ ia[i-1] = (uint8_t)(chunk >> 8); ia[i] = (uint8_t)(chunk & 0x00FF);