From 6e08c83530bc54a47c10408a8472e95d1a4147ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 18 Jan 2024 08:58:21 +0000 Subject: [PATCH] cid#1545625 COPY_INSTEAD_OF_MOVE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ibd32bdb5b1c4fc8220e99d308a21af64e4cad7b2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162241 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- uui/source/iahndl-ssl.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/uui/source/iahndl-ssl.cxx b/uui/source/iahndl-ssl.cxx index 24737d4a0353..3e2525093935 100644 --- a/uui/source/iahndl-ssl.cxx +++ b/uui/source/iahndl-ssl.cxx @@ -273,10 +273,9 @@ handleCertificateValidationRequest_( altNames = comphelper::sequenceToContainer>(sanExtension->getAlternativeNames()); } - OUString certHostName = getContentPart( rRequest.Certificate->getSubjectName() ); uno::Sequence< OUString > certHostNames(altNames.size() + 1); auto pcertHostNames = certHostNames.getArray(); - pcertHostNames[0] = certHostName; + pcertHostNames[0] = getContentPart(rRequest.Certificate->getSubjectName()); for (size_t n = 0; n < altNames.size(); ++n) {