Check if a config has been selected before narrowing selectors in quick mode
This commit is contained in:
@@ -697,8 +697,11 @@ METHOD(task_t, process_r, status_t,
|
|||||||
this->tsi = this->tsr = NULL;
|
this->tsi = this->tsr = NULL;
|
||||||
this->config = peer_cfg->select_child_cfg(peer_cfg, tsr, tsi,
|
this->config = peer_cfg->select_child_cfg(peer_cfg, tsr, tsi,
|
||||||
me, other);
|
me, other);
|
||||||
this->tsi = select_ts(this, FALSE, tsi);
|
if (this->config)
|
||||||
this->tsr = select_ts(this, TRUE, tsr);
|
{
|
||||||
|
this->tsi = select_ts(this, FALSE, tsi);
|
||||||
|
this->tsr = select_ts(this, TRUE, tsr);
|
||||||
|
}
|
||||||
tsi->destroy_offset(tsi, offsetof(traffic_selector_t, destroy));
|
tsi->destroy_offset(tsi, offsetof(traffic_selector_t, destroy));
|
||||||
tsr->destroy_offset(tsr, offsetof(traffic_selector_t, destroy));
|
tsr->destroy_offset(tsr, offsetof(traffic_selector_t, destroy));
|
||||||
if (!this->config)
|
if (!this->config)
|
||||||
|
|||||||
Reference in New Issue
Block a user