]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
fixed stupid bug in fetch_ocsp()
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 19 Mar 2008 12:36:15 +0000 (12:36 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 19 Mar 2008 12:36:15 +0000 (12:36 -0000)
src/charon/credentials/credential_manager.c

index a3235bd04a90e4e5f98a1ec382615fd771b0dacb..7b16c521c308a38bdbfac9138ec922a0ee2da636 100644 (file)
@@ -476,7 +476,7 @@ static certificate_t *fetch_ocsp(private_credential_manager_t *this, char *url,
                issuer_cert->destroy(issuer_cert);
                DBG1(DBG_CFG, "  ocsp response is %strusted: %s signature",
                                                 ok ? "":"un", ok ? "good" : "bad");
-               if (ok)
+               if (!ok)
                {
                        response->destroy(response);
                        return NULL;