[libvirt] [PATCH] ipv6 check for :: address
Ján Tomko
jtomko at redhat.com
Fri Jan 16 13:33:06 UTC 2015
On 01/16/2015 02:27 PM, Cédric Bosdonnat wrote:
> Hi John,
>
> Here is a possible fix for the coverity issue you mentioned. Since ipv6
> addresses are too big to be converted to a single integer, I just looped
> over the array... not sure that is the most elegant way to do it.
>
> Cédric Bosdonnat (1):
> Coverity fix: properly check for 0 ipv6 address.
>
> src/util/virsocketaddr.c | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
I don't see the actual patch, but you can use the virSocketAddrIsWildcard
helper for the most elegant way.
Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150116/1edce2e1/attachment-0001.sig>
More information about the libvir-list
mailing list