diff options
author | Paul Jakma <paul@quagga.net> | 2012-03-23 14:58:45 +0000 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2012-03-27 11:48:35 +0100 |
commit | 683f2b86d89fa356d3d1f7a54b0c269baa38b836 (patch) | |
tree | 0788f6ea3f9079d3c1d775c49cd4cd881e44d204 /bgpd | |
parent | bd471fea4ec965c71d6c2201745995092fbc36f6 (diff) |
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...
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgp_attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c index d204cec1..66704169 100644 --- a/bgpd/bgp_attr.c +++ b/bgpd/bgp_attr.c @@ -892,7 +892,7 @@ bgp_attr_flag_invalid (struct bgp_attr_parser_args *args) && 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; |