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
+1
View File
@@ -1769,6 +1769,7 @@ METHOD(ike_sa_manager_t, check_uniqueness, bool,
switch (policy)
{
case UNIQUE_REPLACE:
charon->bus->alert(charon->bus, ALERT_UNIQUE_REPLACE);
DBG1(DBG_IKE, "deleting duplicate IKE_SA for peer "
"'%Y' due to uniqueness policy", other);
status = duplicate->delete(duplicate);