diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/socket/ntapi_sc_connect_v2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/socket/ntapi_sc_connect_v2.c b/src/socket/ntapi_sc_connect_v2.c index 42fd213..cfa0ae1 100644 --- a/src/socket/ntapi_sc_connect_v2.c +++ b/src/socket/ntapi_sc_connect_v2.c @@ -59,6 +59,9 @@ int32_t __cdecl __ntapi_sc_connect_v2( if (addrlen == sizeof(nt_sockaddr_in6)) { dst->d2 = src->d2; dst->d3 = src->d3; + } else { + dst->d2 = 0; + dst->d3 = 0; } afd_connect_req.paddr = &(afd_connect_req.addr); |