summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-11 20:22:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-03-12 10:09:21 +0100
commitb344ecfa6d9b9296b1f765490d4ad3e487c33cd4 (patch)
tree93f3da3ffe39719d0a8ccc79ccb5d8f052a7a88a /xmlsecurity
parente70b5fc8fa325d56d3da4edba11dc1aed6280e2f (diff)
do same logging as ReadAndVerifySignature does
Change-Id: I89c0e29f595049096afa73ff86badc06c0b40d7f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112365 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/helper/xmlsignaturehelper.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmlsecurity/source/helper/xmlsignaturehelper.cxx b/xmlsecurity/source/helper/xmlsignaturehelper.cxx
index 94a128b05d75..d91a02ad8124 100644
--- a/xmlsecurity/source/helper/xmlsignaturehelper.cxx
+++ b/xmlsecurity/source/helper/xmlsignaturehelper.cxx
@@ -270,13 +270,14 @@ bool XMLSignatureHelper::ReadAndVerifySignature( const css::uno::Reference< css:
// Parser -> SignatureReader
xParser->setDocumentHandler( xHandler );
- // parser the stream
+ // Parse the stream.
try
{
xParser->parseStream( aParserInput );
}
catch( uno::Exception& )
{
+ DBG_UNHANDLED_EXCEPTION("xmlsecurity.helper");
mbError = true;
}
@@ -407,6 +408,7 @@ bool XMLSignatureHelper::ReadAndVerifySignatureStorageStream(const css::uno::Ref
DBG_UNHANDLED_EXCEPTION("xmlsecurity.helper");
}
+ // release the signature reader
mpXSecController->releaseSignatureReader();
return !mbError;