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:
Tobias Brunner
2026-07-23 10:26:08 +02:00
parent e36a8c0d62
commit 7a316d9159
@@ -486,6 +486,7 @@ static bool install_route(private_kernel_libipsec_ipsec_t *this,
"%R === %R %N", src_ts, dst_ts, policy_dir_names,
policy->direction);
}
remove_exclude_route(this, old);
route_entry_destroy(old);
policy->route = NULL;
}