bug fixed circumventing an assertion in delete_connection when ikev1 is not set
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 31 May 2006 05:51:05 +0000 (05:51 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 31 May 2006 05:51:05 +0000 (05:51 -0000)
src/pluto/connections.c

index e05a1d0..d565fe6 100644 (file)
@@ -310,7 +310,8 @@ delete_connection(struct connection *c, bool relations)
     /* find and delete c from the host pair list */
     if (c->host_pair == NULL)
     {
-       list_rm(struct connection, hp_next, c, unoriented_connections);
+       if (c->ikev1)
+           list_rm(struct connection, hp_next, c, unoriented_connections);
     }
     else
     {