From: Remi Gacogne Date: Fri, 26 Jan 2024 10:25:08 +0000 (+0100) Subject: dnsname: Remove useless resize, we always resize again right after it X-Git-Tag: dnsdist-1.9.0-rc1~2^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d0684508e9e1f39c78b16425ebdc2bcc6f81c51;p=thirdparty%2Fpdns.git dnsname: Remove useless resize, we always resize again right after it --- 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);