]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Bugfix in LOCAL_PREF attribute handling.
authorOndrej Zajicek <santiago@crfreenet.org>
Sun, 26 Oct 2008 21:54:23 +0000 (22:54 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Sun, 26 Oct 2008 21:54:23 +0000 (22:54 +0100)
proto/bgp/attrs.c

index 0fcd1ce1a76b4fcfb7a37aa117fd5fdb499ea42a..b5d8fba788f19294e821d01516350ab6f8c0c1ce 100644 (file)
@@ -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;