bug fixed circumventing an assertion in delete_connection when ikev1 is not set

This commit is contained in:
Andreas Steffen
2006-05-31 05:51:05 +00:00
parent 6848dac603
commit 1df544d063
+2 -1
View 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
{