Raise an alert if CHILD_SA proposals mismatch

This commit is contained in:
Martin Willi
2012-12-19 10:40:32 +01:00
parent bab949bb26
commit 5dd9c3087f
2 changed files with 4 additions and 0 deletions
@@ -377,6 +377,8 @@ static status_t select_and_install(private_child_create_t *this,
if (this->proposal == NULL)
{
DBG1(DBG_IKE, "no acceptable proposal found");
charon->bus->alert(charon->bus, ALERT_PROPOSAL_MISMATCH_CHILD,
this->proposals);
return FAILED;
}
this->other_spi = this->proposal->get_spi(this->proposal);