[Libreoffice-commits] core.git: xmlsecurity/source
Thorsten Behrens
Thorsten.Behrens at CIB.de
Sun Jul 2 02:45:05 UTC 2017
xmlsecurity/source/dialogs/certificatechooser.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 01985fd8fccf46749b74ee733391ce8b6ec1f1f8
Author: Thorsten Behrens <Thorsten.Behrens at CIB.de>
Date: Sat Jul 1 10:22:06 2017 +0200
xmlsecurity: avoid crash on empty security context
This should prevent 8cf224c2-f9b9-44e1-9cb0-fc452e570886
Change-Id: I1ad4d8437923eb677d574c2c469cc62378c9c7a6
Reviewed-on: https://gerrit.libreoffice.org/39430
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/xmlsecurity/source/dialogs/certificatechooser.cxx b/xmlsecurity/source/dialogs/certificatechooser.cxx
index cb9d2db4d4e5..828823974182 100644
--- a/xmlsecurity/source/dialogs/certificatechooser.cxx
+++ b/xmlsecurity/source/dialogs/certificatechooser.cxx
@@ -153,6 +153,8 @@ void CertificateChooser::ImplInitialize()
for (auto &secContext : mxSecurityContexts)
{
+ if (!secContext.is())
+ continue;
auto secEnvironment = secContext->getSecurityEnvironment();
if (!secEnvironment.is())
continue;
More information about the Libreoffice-commits
mailing list