summaryrefslogtreecommitdiff
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
parent1adc17b4b57267e301fcd67309494bbbddbfa718 (diff)
Bugfix in LOCAL_PREF attribute handling.
-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 0fcd1ce1..b5d8fba7 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;