[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.
diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog
index ed60649..b2191d4 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 db0f3a7..1c0e6f1 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -2370,7 +2370,7 @@
   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;