commit | 683f2b86d89fa356d3d1f7a54b0c269baa38b836 | [log] [tgz] |
---|---|---|
author | Paul Jakma <paul@quagga.net> | Fri Mar 23 14:58:45 2012 +0000 |
committer | Paul Jakma <paul@quagga.net> | Tue Mar 27 11:48:35 2012 +0100 |
tree | 0788f6ea3f9079d3c1d775c49cd4cd881e44d204 | |
parent | bd471fea4ec965c71d6c2201745995092fbc36f6 [diff] [blame] |
bgpd: Fix silly mistake in bgp_attr_flag_invalid * bgp_attr.c: (bgp_attr_flag_invalid) flags is meant to be masked off with the mask variable...
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c index d204cec..6670416 100644 --- a/bgpd/bgp_attr.c +++ b/bgpd/bgp_attr.c
@@ -892,7 +892,7 @@ && CHECK_FLAG (flags, BGP_ATTR_FLAG_TRANS)) SET_FLAG (mask, BGP_ATTR_FLAG_PARTIAL); - if ((flags & ~attr_flags_values[attr_code]) + if ((flags & ~mask) == attr_flags_values[attr_code]) return 0;