From 1df544d063bd534420da759892f5a3cd904eff04 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Wed, 31 May 2006 05:51:05 +0000 Subject: [PATCH] bug fixed circumventing an assertion in delete_connection when ikev1 is not set --- src/pluto/connections.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {