summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Lambert <lambert@psc.edu>2009-05-21 09:17:01 -0400
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-05-21 12:33:39 -0700
commit3ea593d4664b070cdf638946a9dea57c7045b3dd (patch)
treee4d64349be10a4bffec9e33ae90544de671405a2
parent8a97c5ec54c94c8dc75a576968fddf52fc5b2d1f (diff)
downloadquagga-3ea593d4664b070cdf638946a9dea57c7045b3dd.tar.bz2
quagga-3ea593d4664b070cdf638946a9dea57c7045b3dd.tar.xz
BGP Community Deletion Bug
The attached patch was already posted to the list once (thanks to whoever found it first). However, it never made it into the code base. It is a severe to critical bug affecting community deletions on 64-bit machines and is bug #515 in bugzilla.
-rw-r--r--bgpd/bgp_community.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_community.c b/bgpd/bgp_community.c
index 72bb88e6..d40d69a2 100644
--- a/bgpd/bgp_community.c
+++ b/bgpd/bgp_community.c
@@ -78,7 +78,7 @@ community_del_val (struct community *com, u_int32_t *val)
c = com->size -i -1;
if (c > 0)
- memcpy (com->val + i, com->val + (i + 1), c * sizeof (val));
+ memcpy (com->val + i, com->val + (i + 1), c * sizeof (*val));
com->size--;