diff --git a/subsys/net/ip/net_if.c b/subsys/net/ip/net_if.c index 1e762c7a6c7..9ba2bf9d92d 100644 --- a/subsys/net/ip/net_if.c +++ b/subsys/net/ip/net_if.c @@ -2157,7 +2157,7 @@ static struct net_if_ipv6_prefix *ipv6_prefix_find(struct net_if *iface, } for (i = 0; i < NET_IF_MAX_IPV6_PREFIX; i++) { - if (!ipv6->unicast[i].is_used) { + if (!ipv6->prefix[i].is_used) { continue; }