bug fixed circumventing an assertion in delete_connection when ikev1 is not set
This commit is contained in:
parent
6848dac603
commit
1df544d063
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue