0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

Ignore updates if protocol is not UP

This commit is contained in:
Igor Putovny 2024-05-31 16:20:52 +02:00
parent b7f7c11ea7
commit f4d5b4f02c

View File

@ -1290,6 +1290,10 @@ aggregator_rt_notify(struct proto *P, struct channel *src_ch, net *net, rte *new
struct aggregator_bucket *new_bucket = NULL, *old_bucket = NULL;
struct aggregator_route *old_route = NULL;
/* Ignore all updates if protocol is not up */
if (p->p.proto_state != PS_UP)
return;
/* Find the objects for the old route */
if (old)
old_route = HASH_FIND(p->routes, AGGR_RTE, old);