diff --git a/lib/libifconfig/libifconfig_inet6.c b/lib/libifconfig/libifconfig_inet6.c index c2edc5debf91..04fd89b38d57 100644 --- a/lib/libifconfig/libifconfig_inet6.c +++ b/lib/libifconfig/libifconfig_inet6.c @@ -97,7 +97,7 @@ ifconfig_inet6_get_addrinfo(ifconfig_handle_t *h, addr->lifetime = ifr6.ifr_ifru.ifru_lifetime; /* struct copy */ /* Set the vhid */ - if (ifa->ifa_data && ifa->ifa_data) { + if (ifa->ifa_data) { addr->vhid = ((struct if_data *)ifa->ifa_data)->ifi_vhid; }