summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-10-28 11:55:00 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-10-28 14:34:54 +0200
commitdfdb04938fbaa756b236f1008a7cef576225404d (patch)
treea7a1ca241adbda8e376d00f8571cf553a0461d78 /xmlsecurity
parent773465fb95c1be48f8fdf406d2d39caa142050db (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx2
1 files changed, 1 insertions, 1 deletions
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;