Paul Gofman : ntdll: Also initialize icmp_over_dgram in sock_read().

Alexandre Julliard julliard at winehq.org
Mon Aug 8 15:19:03 CDT 2022


Module: wine
Branch: master
Commit: 7b51216198237c04a8994cda1bdb45fdb4482b32
URL:    https://gitlab.winehq.org/wine/wine/-/commit/7b51216198237c04a8994cda1bdb45fdb4482b32

Author: Paul Gofman <pgofman at codeweavers.com>
Date:   Sun Aug  7 12:19:10 2022 -0500

ntdll: Also initialize icmp_over_dgram in sock_read().

Fixes a regression introduced by commit
1e35966eb57db7060d0c459bc7aaac2f6cad7442.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52429

---

 dlls/ntdll/unix/socket.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/ntdll/unix/socket.c b/dlls/ntdll/unix/socket.c
index 18ff23a7399..bf5907aafc1 100644
--- a/dlls/ntdll/unix/socket.c
+++ b/dlls/ntdll/unix/socket.c
@@ -974,6 +974,7 @@ NTSTATUS sock_read( HANDLE handle, int fd, HANDLE event, PIO_APC_ROUTINE apc,
     async->addr = NULL;
     async->addr_len = NULL;
     async->ret_flags = NULL;
+    async->icmp_over_dgram = is_icmp_over_dgram( fd );
 
     return sock_recv( handle, event, apc, apc_user, io, fd, async, 1 );
 }




More information about the wine-cvs mailing list