kernel-libipsec: Remove exclude route (reference) if route is updated
Fixes: 587bdf8768 ("kernel-libipsec: Track policies and automatically install routes")
This commit is contained in:
@@ -486,6 +486,7 @@ static bool install_route(private_kernel_libipsec_ipsec_t *this,
|
|||||||
"%R === %R %N", src_ts, dst_ts, policy_dir_names,
|
"%R === %R %N", src_ts, dst_ts, policy_dir_names,
|
||||||
policy->direction);
|
policy->direction);
|
||||||
}
|
}
|
||||||
|
remove_exclude_route(this, old);
|
||||||
route_entry_destroy(old);
|
route_entry_destroy(old);
|
||||||
policy->route = NULL;
|
policy->route = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user