diff options
author | midipix <writeonce@midipix.org> | 2016-06-14 13:02:23 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-06-14 13:29:17 -0400 |
commit | c308d4de85a37a85b2c99b75bb6ec0df5fbc4376 (patch) | |
tree | 0e36ff05e51f82b957c8f6ecbf0267ec0219021a | |
parent | 500a04dd0a6c13a54657b4e4bc6332d72ac38029 (diff) | |
download | ntapi-c308d4de85a37a85b2c99b75bb6ec0df5fbc4376.tar.bz2 ntapi-c308d4de85a37a85b2c99b75bb6ec0df5fbc4376.tar.xz |
__ntapi_sc_connect_v2(): always initialize the entire afd_connect_req struct.
-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); |