[Libreoffice-commits] core.git: xmlsecurity/source
Caolán McNamara
caolanm at redhat.com
Wed Jan 17 13:33:28 UTC 2018
xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 7bcb105a9d23d8de458ce7af1d7c127126ccaa10
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Jan 17 13:32:35 2018 +0000
coverity#1427630 Unchecked return value
Change-Id: If92d5b080ce9a4e28fe15da1448f74ecf0a31257
diff --git a/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx b/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx
index 4daa74b103c4..82016b8871bd 100644
--- a/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx
+++ b/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx
@@ -425,8 +425,8 @@ SAL_CALL XMLSignature_GpgImpl::validate(
xmlFree(pKeyPacket);
// and re-run (rewind text and signature streams to position 0)
- data_text.seek(0,SEEK_SET);
- data_signature.seek(0,SEEK_SET);
+ (void)data_text.seek(0,SEEK_SET);
+ (void)data_signature.seek(0,SEEK_SET);
verify_res=rCtx.verifyDetachedSignature(data_signature, data_text);
// TODO: needs some more error handling, needs checking _all_ signatures
More information about the Libreoffice-commits
mailing list