diff options
Diffstat (limited to 'nest/rt-attr.c')
-rw-r--r-- | nest/rt-attr.c | 2 |
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) { |