From: Remi Gacogne Date: Tue, 23 Jan 2024 10:15:12 +0000 (+0100) Subject: dnsname: Remove a redundant comparison reported by CodeQL X-Git-Tag: dnsdist-1.9.0-rc1~2^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28fc81998c80cbe2c97df07e79e0943986229781;p=thirdparty%2Fpdns.git dnsname: Remove a redundant comparison reported by CodeQL --- diff --git a/pdns/dnsname.cc b/pdns/dnsname.cc index 5e01af3ce1..b605786b7f 100644 --- a/pdns/dnsname.cc +++ b/pdns/dnsname.cc @@ -161,7 +161,7 @@ size_t DNSName::parsePacketUncompressed(const UnsignedCharView& view, size_t pos pos += labellen; totalLength += 1 + labellen; } - while (labellen != 0 && pos < view.size()); + while (pos < view.size()); if (totalLength != 0) { auto existingSize = d_storage.size();