diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2008-10-26 22:54:23 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2008-10-26 22:54:23 +0100 |
commit | 4819c3e17ac22c6810ee80261ac3bffb5127e39d (patch) | |
tree | dc9995eb8a3e31faed10f7348668079c4d521501 | |
parent | 1adc17b4b57267e301fcd67309494bbbddbfa718 (diff) | |
download | bird-4819c3e17ac22c6810ee80261ac3bffb5127e39d.tar bird-4819c3e17ac22c6810ee80261ac3bffb5127e39d.zip |
Bugfix in LOCAL_PREF attribute handling.
-rw-r--r-- | proto/bgp/attrs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c index 0fcd1ce..b5d8fba 100644 --- a/proto/bgp/attrs.c +++ b/proto/bgp/attrs.c @@ -1262,7 +1262,7 @@ bgp_decode_attrs(struct bgp_conn *conn, byte *attr, unsigned int len, struct lin goto loop; /* 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); return a; |