mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Fixes a bug in kernel extended attribute processing.
The bug caused that krt_prefsrc attribute was not processed when a route received from a kernel protocol was exported to another kernel protocol. Thanks to Sergey Popovich for a bugreport.
This commit is contained in:
parent
507e182a60
commit
2a0130f94d
@ -730,6 +730,13 @@ krt_prune(struct krt_proto *p)
|
||||
/* Route rejected, should not happen (KRF_INSTALLED) but to be sure .. */
|
||||
verdict = (verdict == KRF_CREATE) ? KRF_IGNORE : KRF_DELETE;
|
||||
}
|
||||
else
|
||||
{
|
||||
ea_list **x = &tmpa;
|
||||
while (*x)
|
||||
x = &((*x)->next);
|
||||
*x = new ? new->attrs->eattrs : NULL;
|
||||
}
|
||||
}
|
||||
|
||||
switch (verdict)
|
||||
|
Loading…
Reference in New Issue
Block a user