[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: [PATCH] ws2_32: Also check the FQDN when injecting the local IP.
From:       Alexandre Julliard <julliard () winehq ! org>
Date:       2017-08-28 12:38:00
Message-ID: 87tw0rc1g7.fsf () winehq ! org
[Download RAW message or body]

Stefan Dösinger <stefan@codeweavers.com> writes:

> @@ -6576,6 +6592,8 @@ int WINAPI WS_getaddrinfo(LPCSTR nodename, LPCSTR servname, const struct WS_addr
>  
>      hostname = get_hostname();
>      if (!hostname) return WSA_NOT_ENOUGH_MEMORY;
> +    fqdn = get_fqdn();
> +    if (!fqdn) return WSA_NOT_ENOUGH_MEMORY;

It seems to me that you shouldn't need to retrieve both separately, the
FQDN contains the hostname already.

-- 
Alexandre Julliard
julliard@winehq.org



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic