Bugfix in LOCAL_PREF attribute handling.
This commit is contained in:
parent
1adc17b4b5
commit
4819c3e17a
1 changed files with 1 additions and 1 deletions
|
@ -1262,7 +1262,7 @@ bgp_decode_attrs(struct bgp_conn *conn, byte *attr, unsigned int len, struct lin
|
||||||
goto loop;
|
goto loop;
|
||||||
|
|
||||||
/* If there's no local preference, define one */
|
/* If there's no local preference, define one */
|
||||||
if (!(seen[0] && (1 << BA_LOCAL_PREF)))
|
if (!(seen[0] & (1 << BA_LOCAL_PREF)))
|
||||||
bgp_attach_attr(&a->eattrs, pool, BA_LOCAL_PREF, 0);
|
bgp_attach_attr(&a->eattrs, pool, BA_LOCAL_PREF, 0);
|
||||||
return a;
|
return a;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue