From 6d0684508e9e1f39c78b16425ebdc2bcc6f81c51 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 26 Jan 2024 11:25:08 +0100 Subject: [PATCH] dnsname: Remove useless resize, we always resize again right after it --- pdns/dnsname.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/pdns/dnsname.cc b/pdns/dnsname.cc index b605786b7f..b16122112f 100644 --- a/pdns/dnsname.cc +++ b/pdns/dnsname.cc @@ -168,7 +168,6 @@ size_t DNSName::parsePacketUncompressed(const UnsignedCharView& view, size_t pos if (existingSize > 0) { // remove the last label count, we are about to override it */ --existingSize; - d_storage.resize(existingSize); } d_storage.reserve(existingSize + totalLength + 1); d_storage.resize(existingSize + totalLength); -- 2.47.2