xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx |    4 
++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d06f8ba07a86f95de3446c66521960d27134afdc
Author:     Michael Stahl <[email protected]>
AuthorDate: Fri Oct 15 16:50:51 2021 +0200
Commit:     Miklos Vajna <[email protected]>
CommitDate: Mon Oct 18 08:23:45 2021 +0200

    xmlsecurity: fix some obvious copypasta
    
    These 2 calls to CertAddStoreToCollection follow calls where
    m_hCertStore was already added and according to the comments they
    should add the other store instead.
    
    (regression from commit 813e1f5a8ae4800e8a11c612de4e3b0a97f1368d)
    
    Change-Id: If375f603647a702feb0ca8f272126a15d5d0e906
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123666
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <[email protected]>

diff --git 
a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx 
b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
index dfb81ab177ee..3d298384549d 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
@@ -619,7 +619,7 @@ uno::Sequence< uno::Reference < XCertificate > > 
SecurityEnvironment_MSCryptImpl
                      0) ;
                 CertAddStoreToCollection (
                      hCollectionStore ,
-                     m_hCertStore ,
+                     m_hKeyStore,
                      CERT_PHYSICAL_STORE_ADD_ENABLE_FLAG ,
                      0) ;
                 hAdditionalStore = hCollectionStore;
@@ -800,7 +800,7 @@ sal_Int32 
SecurityEnvironment_MSCryptImpl::verifyCertificate(
                 0) ;
             CertAddStoreToCollection (
                 hCollectionStore ,
-                m_hCertStore ,
+                m_hKeyStore,
                 CERT_PHYSICAL_STORE_ADD_ENABLE_FLAG ,
                 0) ;
             CertAddStoreToCollection (

Reply via email to