From 28fc81998c80cbe2c97df07e79e0943986229781 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 23 Jan 2024 11:15:12 +0100 Subject: [PATCH] dnsname: Remove a redundant comparison reported by CodeQL --- pdns/dnsname.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.47.2