mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
zebra: Fix misaligned long long unsigned int
Error message: ./multicast_pim_dr_nondr_test.test_pim_dr_nondr_with_ospf_topo2/r5/zebra.err:zebra/rt_netlink.c:1142:15: runtime error: load of misaligned address 0x7bb40000a064 for type 'long long unsigned int', which requires 8 byte alignment Fix it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
4675f3730e
commit
4e5c8ddf06
|
@ -1381,8 +1381,12 @@ static int netlink_route_change_read_multicast(struct nlmsghdr *h,
|
|||
*(struct in6_addr *)RTA_DATA(tb[RTA_DST]);
|
||||
}
|
||||
|
||||
if (tb[RTA_EXPIRES])
|
||||
m->lastused = *(unsigned long long *)RTA_DATA(tb[RTA_EXPIRES]);
|
||||
if (tb[RTA_EXPIRES]) {
|
||||
unsigned long long temporary;
|
||||
|
||||
memcpy(&temporary, RTA_DATA(tb[RTA_EXPIRES]), sizeof(temporary));
|
||||
m->lastused = temporary;
|
||||
}
|
||||
|
||||
if (tb[RTA_MULTIPATH]) {
|
||||
struct rtnexthop *rtnh =
|
||||
|
|
Loading…
Reference in a new issue