]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: fix size confusion
authorDavid Lamparter <equinox@diac24.net>
Thu, 23 Apr 2020 21:54:05 +0000 (23:54 +0200)
committerDavid Lamparter <equinox@diac24.net>
Tue, 28 Apr 2020 09:11:46 +0000 (11:11 +0200)
The question here isn't "why does it break on PowerPC?", but rather "why
doesn't it break on x86_64 or ARM?"

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
tests/bgpd/test_mpath.c

index 2258df949179589fe044cb8452ea97c958bc82ea..87c214969f7c694a1875652f045a92181ee9fa0d 100644 (file)
@@ -315,7 +315,7 @@ static int setup_bgp_path_info_mpath_update(testcase_t *t)
        str2prefix("42.1.1.0/24", &test_rn.p);
        rt_node = bgp_node_to_rnode(&test_rn);
        memcpy((struct route_table *)&rt_node->table, &rt->route_table,
-              sizeof(struct route_table));
+              sizeof(struct route_table *));
        setup_bgp_mp_list(t);
        for (i = 0; i < test_mp_list_info_count; i++)
                bgp_path_info_add(&test_rn, &test_mp_list_info[i]);