]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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 a1cf2103e66c719ab2e4dc26743130665a88867c..1e707f4094ed16e8603eaece483a04c2e8df3348 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);