summaryrefslogtreecommitdiff
path: root/lib/nexthop_group.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nexthop_group.c')
-rw-r--r--lib/nexthop_group.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/nexthop_group.c b/lib/nexthop_group.c
index f342f50e8f..f6479f8d2c 100644
--- a/lib/nexthop_group.c
+++ b/lib/nexthop_group.c
@@ -272,6 +272,7 @@ struct nexthop_group *nexthop_group_new(void)
void nexthop_group_copy(struct nexthop_group *to,
const struct nexthop_group *from)
{
+ to->nhgr = from->nhgr;
/* Copy everything, including recursive info */
copy_nexthops(&to->nexthop, from->nexthop, NULL);
}