diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 01b527ea808e..2c67d61569e6 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -1138,8 +1138,10 @@ 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]) { + uint32_t temporary = *(uint32_t *)RTA_DATA(tb[RTA_EXPIRES]); + m->lastused = temporary; + } if (tb[RTA_MULTIPATH]) { struct rtnexthop *rtnh =