summaryrefslogtreecommitdiffstats
path: root/proto/bgp
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2008-10-26 22:54:23 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2008-10-26 22:54:23 +0100
commit4819c3e17ac22c6810ee80261ac3bffb5127e39d (patch)
treedc9995eb8a3e31faed10f7348668079c4d521501 /proto/bgp
parent1adc17b4b57267e301fcd67309494bbbddbfa718 (diff)
downloadbird-4819c3e17ac22c6810ee80261ac3bffb5127e39d.tar
bird-4819c3e17ac22c6810ee80261ac3bffb5127e39d.zip
Bugfix in LOCAL_PREF attribute handling.
Diffstat (limited to 'proto/bgp')
-rw-r--r--proto/bgp/attrs.c2
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;