ws2_32: Fix some edge cases for getaddrinfo in BSD and OSX
Bruno Jesus
00cpxxx at gmail.com
Fri Feb 14 05:30:03 CST 2014
On Fri, Feb 14, 2014 at 9:27 AM, Dmitry Timoshkov <dmitry at baikal.ru> wrote:
> Bruno Jesus <00cpxxx at gmail.com> wrote:
>
>> + /* servname tweaks required by OSX and BSD kernels */
>> + if (!servname)
>> + serv = NULL;
>> + else if (!servname[0])
>> + serv = "0";
>> + else
>> + serv = servname;
>
> Shouldn't 'serv = "0"' be 'serv = ""' ?
No, that is the trick. Linux supports both "" and "0" but OSX/BSD does
not support "". So turning the "" into "0" solves the issue.
> --
> Dmitry.
Bruno
More information about the wine-devel
mailing list