diff options
Diffstat (limited to 'src/pluto/connections.c')
-rw-r--r-- | src/pluto/connections.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pluto/connections.c b/src/pluto/connections.c index e05a1d0b5..d565fe629 100644 --- a/src/pluto/connections.c +++ b/src/pluto/connections.c @@ -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 { |