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
1 changed files with 7 additions and 0 deletions
|
@ -730,6 +730,13 @@ krt_prune(struct krt_proto *p)
|
||||||
/* Route rejected, should not happen (KRF_INSTALLED) but to be sure .. */
|
/* Route rejected, should not happen (KRF_INSTALLED) but to be sure .. */
|
||||||
verdict = (verdict == KRF_CREATE) ? KRF_IGNORE : KRF_DELETE;
|
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)
|
switch (verdict)
|
||||||
|
|
Loading…
Reference in a new issue