diff options
Diffstat (limited to 'meta-networking/recipes-protocols/quagga/files/quagga-fix-CVE-2013-6051.patch')
-rw-r--r-- | meta-networking/recipes-protocols/quagga/files/quagga-fix-CVE-2013-6051.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/quagga/files/quagga-fix-CVE-2013-6051.patch b/meta-networking/recipes-protocols/quagga/files/quagga-fix-CVE-2013-6051.patch new file mode 100644 index 0000000000..fde9e0ca81 --- /dev/null +++ b/meta-networking/recipes-protocols/quagga/files/quagga-fix-CVE-2013-6051.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | |||
2 | From 8794e8d229dc9fe29ea31424883433d4880ef408 | ||
3 | From: Paul Jakma <paul@quagga.net> | ||
4 | Date: Mon, 13 Feb 2012 13:53:07 +0000 | ||
5 | Subject: bgpd: Fix regression in args consolidation, total should be inited from args | ||
6 | |||
7 | bgpd: Fix regression in args consolidation, total should be inited from args | ||
8 | |||
9 | * bgp_attr.c: (bgp_attr_unknown) total should be initialised from the args. | ||
10 | |||
11 | Upstream-Status: Backport | ||
12 | |||
13 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
14 | --- | ||
15 | |||
16 | diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c | ||
17 | index 65af824..839f64d 100644 | ||
18 | --- a/bgpd/bgp_attr.c | ||
19 | +++ b/bgpd/bgp_attr.c | ||
20 | |||
21 | @@ -1646,7 +1646,7 @@ | ||
22 | static bgp_attr_parse_ret_t | ||
23 | bgp_attr_unknown (struct bgp_attr_parser_args *args) | ||
24 | { | ||
25 | - bgp_size_t total; | ||
26 | + bgp_size_t total = args->total; | ||
27 | struct transit *transit; | ||
28 | struct attr_extra *attre; | ||
29 | struct peer *const peer = args->peer; | ||