From 3cb2c449e88bc561d0aad1e852ec6fc5043bc80c Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis Date: Fri, 13 Jul 2012 16:35:56 +0000 Subject: [PATCH] [packages] quagga: Fix memleak with struct attr_extra SVN-Revision: 32701 --- .../010-bgpd-fix-struct-attr_extra-leak.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 net/quagga/patches/010-bgpd-fix-struct-attr_extra-leak.patch diff --git a/net/quagga/patches/010-bgpd-fix-struct-attr_extra-leak.patch b/net/quagga/patches/010-bgpd-fix-struct-attr_extra-leak.patch new file mode 100644 index 0000000000..5841506196 --- /dev/null +++ b/net/quagga/patches/010-bgpd-fix-struct-attr_extra-leak.patch @@ -0,0 +1,19 @@ +Index: quagga-0.99.21/bgpd/bgp_route.c +=================================================================== +--- quagga-0.99.21.orig/bgpd/bgp_route.c ++++ quagga-0.99.21/bgpd/bgp_route.c +@@ -2485,12 +2485,8 @@ bgp_default_originate (struct peer *peer + #ifdef HAVE_IPV6 + else if (afi == AFI_IP6) + { +- struct attr_extra *ae; +- attr.extra = NULL; +- +- ae = bgp_attr_extra_get (&attr); +- attr.extra = ae; +- ++ struct attr_extra *ae = attr.extra; ++ + str2prefix ("::/0", &p); + + /* IPv6 global nexthop must be included. */ -- 2.30.2