Hans Leidekker : wpcap: Accept interfaces without associated IPv4 or IPv6 address.

Alexandre Julliard julliard at winehq.org
Mon Oct 11 15:41:36 CDT 2021


Module: wine
Branch: master
Commit: 487ec2d4568a1b1e81781d648a5686a91617dafb
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=487ec2d4568a1b1e81781d648a5686a91617dafb

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Mon Oct 11 16:54:39 2021 +0200

wpcap: Accept interfaces without associated IPv4 or IPv6 address.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wpcap/wpcap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wpcap/wpcap.c b/dlls/wpcap/wpcap.c
index 3a0b2381697..67d55b8f3f0 100644
--- a/dlls/wpcap/wpcap.c
+++ b/dlls/wpcap/wpcap.c
@@ -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->name = build_win32_name( source, adapter_name ))) 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;
     return ret;
 




More information about the wine-cvs mailing list