Raise alerts when enforcing IKE_SA unique policy

This commit is contained in:
Martin Willi
2012-12-19 10:40:32 +01:00
parent 5dd9c3087f
commit c794455666
4 changed files with 7 additions and 0 deletions
@@ -191,6 +191,7 @@ METHOD(listener_t, message_hook, bool,
{
DBG1(DBG_CFG, "got a response on a duplicate IKE_SA for '%Y', "
"deleting new IKE_SA", id);
charon->bus->alert(charon->bus, ALERT_UNIQUE_KEEP);
entry_destroy(entry);
this->mutex->lock(this->mutex);
entry = this->active->remove(this->active, id);