Filter out non-matching ike_cfg in backend manager, so backends don't have to
This commit is contained in:
@@ -96,6 +96,11 @@ static ike_cfg_match_t get_ike_match(ike_cfg_t *cand, host_t *me, host_t *other)
|
|||||||
{
|
{
|
||||||
match += MATCH_ANY;
|
match += MATCH_ANY;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
me_cand->destroy(me_cand);
|
||||||
|
return MATCH_NONE;
|
||||||
|
}
|
||||||
me_cand->destroy(me_cand);
|
me_cand->destroy(me_cand);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -119,6 +124,11 @@ static ike_cfg_match_t get_ike_match(ike_cfg_t *cand, host_t *me, host_t *other)
|
|||||||
{
|
{
|
||||||
match += MATCH_ANY;
|
match += MATCH_ANY;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
other_cand->destroy(other_cand);
|
||||||
|
return MATCH_NONE;
|
||||||
|
}
|
||||||
other_cand->destroy(other_cand);
|
other_cand->destroy(other_cand);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user