ikev1: Log traffic selectors for missing child configs
Signed-off-by: Thomas Egerer <[email protected]>
This commit is contained in:
committed by
Tobias Brunner
parent
8c732b8e21
commit
a160f100fb
@@ -1110,14 +1110,17 @@ METHOD(task_t, process_r, status_t,
|
|||||||
this->tsi = select_ts(this, FALSE, tsi);
|
this->tsi = select_ts(this, FALSE, tsi);
|
||||||
this->tsr = select_ts(this, TRUE, tsr);
|
this->tsr = select_ts(this, TRUE, tsr);
|
||||||
}
|
}
|
||||||
tsi->destroy_offset(tsi, offsetof(traffic_selector_t, destroy));
|
|
||||||
tsr->destroy_offset(tsr, offsetof(traffic_selector_t, destroy));
|
|
||||||
if (!this->config || !this->tsi || !this->tsr ||
|
if (!this->config || !this->tsi || !this->tsr ||
|
||||||
this->mode != this->config->get_mode(this->config))
|
this->mode != this->config->get_mode(this->config))
|
||||||
{
|
{
|
||||||
DBG1(DBG_IKE, "no matching CHILD_SA config found");
|
DBG1(DBG_IKE, "no matching CHILD_SA config found for "
|
||||||
|
"%#R === %#R", tsi, tsr);
|
||||||
|
tsi->destroy_offset(tsi, offsetof(traffic_selector_t, destroy));
|
||||||
|
tsr->destroy_offset(tsr, offsetof(traffic_selector_t, destroy));
|
||||||
return send_notify(this, INVALID_ID_INFORMATION);
|
return send_notify(this, INVALID_ID_INFORMATION);
|
||||||
}
|
}
|
||||||
|
tsi->destroy_offset(tsi, offsetof(traffic_selector_t, destroy));
|
||||||
|
tsr->destroy_offset(tsr, offsetof(traffic_selector_t, destroy));
|
||||||
|
|
||||||
if (this->config->has_option(this->config, OPT_IPCOMP))
|
if (this->config->has_option(this->config, OPT_IPCOMP))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user