summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2023-11-26 00:00:10 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2023-11-26 00:00:10 +0100
commitcd90175de8e9b15e2412e65f00ee9dafddf19a96 (patch)
tree17319af8296be2298b5b2daaaec991023734b353
parent51adbc5f9c2d702b799ea098f6fd5cc17c05255c (diff)
parent63f1c4d918209ba4210024638011f7b9ccdd894b (diff)
Merge commit '63f1c4d9' into wireguard-next-tmp7-1
-rw-r--r--nest/rt-attr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/rt-attr.c b/nest/rt-attr.c
index 7beb119b..25936d81 100644
--- a/nest/rt-attr.c
+++ b/nest/rt-attr.c
@@ -1264,7 +1264,7 @@ rta__free(rta *a)
rta *
rta_do_cow(rta *o, linpool *lp)
{
- rta *r = lp_alloc(lp, rta_size(o));
+ rta *r = lp_alloc(lp, RTA_MAX_SIZE);
memcpy(r, o, rta_size(o));
for (struct nexthop **nhn = &(r->nh.next), *nho = o->nh.next; nho; nho = nho->next)
{