kernel-pfkey: Remove exclude route (reference) if route is updated

Fixes: df919d50d0 ("kernel-pfkey: install exclude routes if kernel-net requires them")
This commit is contained in:
Tobias Brunner
2026-07-23 10:26:08 +02:00
parent cef4bce3e1
commit e36a8c0d62
@@ -2564,6 +2564,7 @@ static bool install_route(private_kernel_pfkey_ipsec_t *this,
"%R === %R %N", out->src_ts, out->dst_ts,
policy_dir_names, policy->direction);
}
remove_exclude_route(this, old);
route_entry_destroy(old);
policy->route = NULL;
}