summaryrefslogtreecommitdiff
path: root/uui
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-01-18 08:58:21 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-01-18 12:39:03 +0100
commit6e08c83530bc54a47c10408a8472e95d1a4147ec (patch)
treef1ef39cc286fcf3d0230da6c889a992d0ee628d7 /uui
parentca704f49ea82dd69e0df059f6a80214fb77f026d (diff)
cid#1545625 COPY_INSTEAD_OF_MOVE
Change-Id: Ibd32bdb5b1c4fc8220e99d308a21af64e4cad7b2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162241 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'uui')
-rw-r--r--uui/source/iahndl-ssl.cxx3
1 files changed, 1 insertions, 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<std::vector<security::CertAltNameEntry>>(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)
{