* bgp_routemap.c: Revert part of leaking communities fix commited in
2005-05-27. While ecommunity fix seems to be correct, community case
isn't.
Fixes bugzilla #209.
[backport candidate]
diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog
index ce4868b..8538830 100644
--- a/bgpd/ChangeLog
+++ b/bgpd/ChangeLog
@@ -1,3 +1,9 @@
+2005-08-03 Hasso Tepper <hasso at quagga.net>
+
+ * bgp_routemap.c: Revert part of leaking communities fix commited in
+ 2005-05-27. While ecommunity fix seems to be correct, community case
+ isn't.
+
2005-06-28 Paul Jakma <paul.jakma@sun.com>
* (global) The great bgpd extern and static'ification.
diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c
index 98e5a98..bc9b6f7 100644
--- a/bgpd/bgp_routemap.c
+++ b/bgpd/bgp_routemap.c
@@ -1223,9 +1223,6 @@
attr->community = new;
- if (old)
- community_free (old);
-
attr->flag |= ATTR_FLAG_BIT (BGP_ATTR_COMMUNITIES);
}