[MSAFD] Fix socket address length returned in WSPAccept. By Peter Hater. CORE-8549
authorAmine Khaldi <amine.khaldi@reactos.org>
Wed, 5 Oct 2016 09:39:12 +0000 (09:39 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Wed, 5 Oct 2016 09:39:12 +0000 (09:39 +0000)
svn path=/trunk/; revision=72910

reactos/dll/win32/msafd/misc/dllmain.c

index 0e9177a..5f0c2e5 100644 (file)
@@ -1413,7 +1413,7 @@ WSPAccept(SOCKET Handle,
                        &ListenReceiveData->Address.Address[0].AddressType,
                        sizeof(*RemoteAddress));
         if( SocketAddressLength )
-            *SocketAddressLength = ListenReceiveData->Address.Address[0].AddressLength;
+            *SocketAddressLength = sizeof(*RemoteAddress);
     }
 
     NtClose( SockEvent );