diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-11 20:23:31 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-05-05 13:16:05 +0200 |
commit | 048e4534aced2874211cbfa14b1024a1891a447f (patch) | |
tree | e87bd7b825549eb4fff65da98c9b856bfd1152be | |
parent | a858b4c35940ed7c094c9eed5264cd50fa0b2de8 (diff) |
do same set error state as ReadAndVerifySignature does
this function is nearly exactly the same as ReadAndVerifySignature
except it doesn't set error-state on exception during parse
Change-Id: Ife881f639a11d3185920ca62cc2cd22812fae36d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112366
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112412
(cherry picked from commit 52a23d595b820cab27d76d0e7c129f2757c762d6)
-rw-r--r-- | xmlsecurity/source/helper/xmlsignaturehelper.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmlsecurity/source/helper/xmlsignaturehelper.cxx b/xmlsecurity/source/helper/xmlsignaturehelper.cxx index a3bb382a8ea4..09487ac673e9 100644 --- a/xmlsecurity/source/helper/xmlsignaturehelper.cxx +++ b/xmlsecurity/source/helper/xmlsignaturehelper.cxx @@ -420,6 +420,7 @@ bool XMLSignatureHelper::ReadAndVerifySignatureStorageStream(const css::uno::Ref catch(const uno::Exception&) { DBG_UNHANDLED_EXCEPTION("xmlsecurity.helper"); + mbError = true; } mpXSecController->releaseSignatureReader(); |