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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]