xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit dfdb04938fbaa756b236f1008a7cef576225404d
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Thu Oct 28 11:55:00 2021 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Thu Oct 28 14:34:54 2021 +0200

    loplugin:simplifybool (clang-cl)
    
    (not a typo according to the comment at
    
<https://gerrit.libreoffice.org/c/core/+/124287/3#message-df56362ec7d674eaab3fe81bb0827be81ee5686d>
    "xmlsecurity: some Distinguished Names are less equal than others":  "i was 
too
    lazy to look up which integer would be returned by the function and hoped 
this
    would convert it to bool anyway"
    
    Change-Id: I0f4f4d19e8d382f4430023aa6f9459c66a605b04
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124321
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx 
b/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
index 97648f3b85cd..e8b86858d337 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
@@ -752,7 +752,7 @@ bool EqualDistinguishedNames(
     }
     CERT_NAME_BLOB blob2;
     bool ret(false);
-    if (!!EncodeDistinguishedName(rName2, blob2))
+    if (EncodeDistinguishedName(rName2, blob2))
     {
         ret = CertCompareCertificateName(X509_ASN_ENCODING,
             &blob1, &blob2) == TRUE;

Reply via email to