ikev2: fix removing of expired SAs
Type: fix
Change-Id: Idf9b0ffb4e3a0113bece80d1195192bdf46feb89
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
diff --git a/src/plugins/ikev2/ikev2.c b/src/plugins/ikev2/ikev2.c
index bb620a8..068ae7c 100644
--- a/src/plugins/ikev2/ikev2.c
+++ b/src/plugins/ikev2/ikev2.c
@@ -4054,7 +4054,6 @@
if (p)
{
ikev2_initiate_sa_init (vm, p->name);
- continue;
}
}
vec_foreach (c, sa->childs)
@@ -4062,6 +4061,7 @@
hash_unset (tkm->sa_by_rspi, sa->rspi);
pool_put (tkm->sas, sa);
}
+ vec_free (to_be_deleted);
}
/* process ipsec sas */