diff options
Diffstat (limited to 'bgpd/bgp_route.c')
-rw-r--r-- | bgpd/bgp_route.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |