summaryrefslogtreecommitdiff
path: root/proto/bgp
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2019-08-14 10:28:23 +0200
committerMaria Matejka <mq@ucw.cz>2020-04-28 16:21:06 +0200
commitd607205486d7ea11f2cbf3dcc3d5e7e6b53f1d0f (patch)
tree6853316920bf9ab37dd0e493377bdef67af00278 /proto/bgp
parent124d860f648f4c1c080e77b5f070b97d094f5285 (diff)
Not calling memcpy with n=0.
Diffstat (limited to 'proto/bgp')
-rw-r--r--proto/bgp/bgp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h
index dc63e13e..0529c45a 100644
--- a/proto/bgp/bgp.h
+++ b/proto/bgp/bgp.h
@@ -552,7 +552,7 @@ static inline void
bgp_set_attr_data(ea_list **to, struct linpool *pool, uint code, uint flags, void *data, uint len)
{
struct adata *a = lp_alloc_adata(pool, len);
- memcpy(a->data, data, len);
+ bmemcpy(a->data, data, len);
bgp_set_attr(to, pool, code, flags, (uintptr_t) a);
}