fixed refactoring bug
authorAndreas Steffen <andreas@strongswan.org>
Sun, 11 Oct 2009 14:34:04 +0000 (16:34 +0200)
committerAndreas Steffen <andreas@strongswan.org>
Sun, 11 Oct 2009 14:34:04 +0000 (16:34 +0200)
src/pluto/connections.c

index a1cf210..1e707f4 100644 (file)
@@ -798,7 +798,7 @@ static void load_end_certificate(char *filename, struct end *dst)
                        }
 
                        /* if no CA is defined, use issuer as default */
-                       if (dst->ca)
+                       if (dst->ca == NULL)
                        {
                                certificate_t *certificate = dst->cert.u.x509->cert;
                                identification_t *issuer = certificate->get_issuer(certificate);