diff options
author | Paul Jakma <paul.jakma@sun.com> | 2007-06-14 11:17:58 +0000 |
---|---|---|
committer | Paul Jakma <paul.jakma@sun.com> | 2007-06-14 11:17:58 +0000 |
commit | b24970241aa19c780a00f0e9c865b98c239a27f2 (patch) | |
tree | f04b9c6a50a944edd461d66da8f65d226437d964 /bgpd | |
parent | e733f949448e1cf9fa27e8b618c56a0e4badc1af (diff) |
[bgpd] bug #370, default-originate was broken by a silly thinko
2007-05-25 Paul Jakma <paul.jakma@sun.com>
* bgp_route.c: (bgp_default_originate) Sanity check added
previously was broken and always failed, thus this function
never could run, bug #370.
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/ChangeLog | 6 | ||||
-rw-r--r-- | bgpd/bgp_route.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog index ed606494..b2191d48 100644 --- a/bgpd/ChangeLog +++ b/bgpd/ChangeLog @@ -1,3 +1,9 @@ +2007-05-25 Paul Jakma <paul.jakma@sun.com> + + * bgp_route.c: (bgp_default_originate) Sanity check added + previously was broken and always failed, thus this function + never could run, bug #370. + 2007-05-03 Paul Jakma <paul.jakma@sun.com> * bgp_route.h: (struct info) Move less frequently used diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index db0f3a74..1c0e6f1a 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -2370,7 +2370,7 @@ bgp_default_originate (struct peer *peer, afi_t afi, safi_t safi, int withdraw) struct peer *from; int ret = RMAP_DENYMATCH; - if (afi != AFI_IP || afi != AFI_IP6) + if (!(afi == AFI_IP || afi == AFI_IP6)) return; bgp = peer->bgp; |