You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ar...@apache.org on 2021/08/19 14:15:10 UTC

[openoffice] branch AOO41X updated: Fix default return value

This is an automated email from the ASF dual-hosted git repository.

ardovm pushed a commit to branch AOO41X
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/AOO41X by this push:
     new d0962c0  Fix default return value
d0962c0 is described below

commit d0962c005fdf2462f2d9f0b584a6e9c6a9d74380
Author: Arrigo Marchiori <ar...@yahoo.it>
AuthorDate: Thu Aug 19 16:11:43 2021 +0200

    Fix default return value
    
    (cherry picked from commit 6dd4cf0f0e446e28c948431ae6ac9ebfe345063a)
---
 .../source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx b/main/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
index e842ea1..fcc72c4 100644
--- a/main/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
+++ b/main/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
@@ -987,7 +987,7 @@ sal_Int32 SecurityEnvironment_MSCryptImpl :: verifyCertificate(
     const Sequence< Reference< ::com::sun::star::security::XCertificate > >& seqCerts) 
     throw( ::com::sun::star::uno::SecurityException, ::com::sun::star::uno::RuntimeException ) 
 {
-	sal_Int32 validity = 0;
+	sal_Int32 validity = ::com::sun::star::security::CertificateValidity::INVALID;
 	PCCERT_CHAIN_CONTEXT pChainContext = NULL;
 	PCCERT_CONTEXT pCertContext = NULL;
 	const X509Certificate_MSCryptImpl* xcert = NULL;