mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-10 08:39:33 +00:00
[bgpd] 64-bit bugfix in community_del_val by Jeremy Jackson <jerj@coplanar.net>
* bgpd/bgp_community.c: (community_del_val) Fix bug in memcpy that was using the wrong size on architectures where a pointer is not 32 bits.
This commit is contained in:
parent
5012bc3d21
commit
8178b2e156
@ -78,7 +78,7 @@ community_del_val (struct community *com, u_int32_t *val)
|
|||||||
c = com->size -i -1;
|
c = com->size -i -1;
|
||||||
|
|
||||||
if (c > 0)
|
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--;
|
com->size--;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user