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
1 changed files with 2 additions and 1 deletions

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
{