[libvirt] [PATCH] Don't use AI_ADDRCONFIG when binding to wildcard addresses

Eric Blake eblake at redhat.com
Fri May 30 19:36:21 UTC 2014


On 05/30/2014 12:21 AM, Ján Tomko wrote:

>>> +    if (nodename &&
>>> +        !(virSocketAddrParse(&tmp_addr, nodename, AF_UNSPEC) > 0 &&
>>> +          virSocketAddrIsWildcard(&tmp_addr)))
>>> +        hints.ai_flags = AI_ADDRCONFIG;
>>
>> Shouldn't this be |= ?
>>
> 
> Functionally it's the same, AI_PASSIVE is ignored if nodename is non-NULL.
> 
> But it should be |= if we were using other flags.

Okay.  ACK to the patch, and safe to include in 1.2.5.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140530/702766fc/attachment-0001.sig>


More information about the libvir-list mailing list