diff options
Diffstat (limited to 'staticd/static_nht.c')
| -rw-r--r-- | staticd/static_nht.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/staticd/static_nht.c b/staticd/static_nht.c index feb6e0f993..d42c5c2777 100644 --- a/staticd/static_nht.c +++ b/staticd/static_nht.c @@ -52,7 +52,8 @@ static void static_nht_update_path(struct route_node *rn, nh->nh_valid = !!nh_num; if (nhp->family == AF_INET6 - && memcmp(&nhp->u.prefix6, &nh->addr.ipv6, 16) == 0) + && memcmp(&nhp->u.prefix6, &nh->addr.ipv6, IPV6_MAX_BYTELEN) + == 0) nh->nh_valid = !!nh_num; if (nh->state == STATIC_START) |
