提交 29f15b43 编写于 作者: C Cédric Bosdonnat

Coverity fix: properly check for 0 ipv6 address.

上级 2bc460d3
......@@ -850,7 +850,7 @@ virSocketAddrGetIpPrefix(const virSocketAddr *address,
}
return -1;
} else if (VIR_SOCKET_ADDR_IS_FAMILY(address, AF_INET6)) {
if (address->data.inet6.sin6_addr.s6_addr == 0)
if (virSocketAddrIsWildcard(address))
return 0;
return 64;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册