]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
fixed bug in mem_cred.c:add_crl()
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 12 Dec 2010 20:34:27 +0000 (21:34 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 12 Dec 2010 20:34:27 +0000 (21:34 +0100)
src/libstrongswan/credentials/sets/mem_cred.c

index c58475d38e4cd531c723b7853a5da93dcc915e4d..6d3736e7d00d41d2fa8c3d360d2c1ee38745cc80 100644 (file)
@@ -198,7 +198,7 @@ METHOD(mem_cred_t, add_crl, bool,
        enumerator = this->untrusted->create_enumerator(this->untrusted);
        while (enumerator->enumerate(enumerator, (void**)&current))
        {
-               if (current->get_type(current) != CERT_X509_CRL)
+               if (current->get_type(current) == CERT_X509_CRL)
                {
                        bool found = FALSE;
                        crl_t *crl_c = (crl_t*)current;