wpcap: Accept interfaces without associated IPv4 or IPv6 address.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2021-10-11 16:54:39 +02:00 committed by Alexandre Julliard
parent 51b9f4cd2b
commit 487ec2d456
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ static struct pcap_interface *build_win32_device( const struct pcap_interface *u
if (!(ret = calloc( 1, sizeof(*ret) ))) return NULL; if (!(ret = calloc( 1, sizeof(*ret) ))) return NULL;
if (!(ret->name = build_win32_name( source, adapter_name ))) goto err; if (!(ret->name = build_win32_name( source, adapter_name ))) goto err;
if (!(ret->description = build_win32_description( unix_dev ))) goto err; if (!(ret->description = build_win32_description( unix_dev ))) goto err;
if (!(ret->addresses = build_win32_addresses( unix_dev->addresses ))) goto err; ret->addresses = build_win32_addresses( unix_dev->addresses );
ret->flags = unix_dev->flags; ret->flags = unix_dev->flags;
return ret; return ret;