[packages] quagga: Fix memleak with struct attr_extra
git-svn-id: svn://svn.openwrt.org/openwrt/packages@32701 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f0a05cbd8c
commit
128aef0963
19
net/quagga/patches/010-bgpd-fix-struct-attr_extra-leak.patch
Normal file
19
net/quagga/patches/010-bgpd-fix-struct-attr_extra-leak.patch
Normal file
@ -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. */
|
Loading…
x
Reference in New Issue
Block a user