mirror of
https://github.com/reactos/reactos.git
synced 2026-07-04 07:04:25 +08:00
- Don't access an index outside the array bounds
- Fixes memory corruption when calling AfdGetSockName and AfdGetPeerName - This caused a high-side redzone overwrite when accessing some web sites svn path=/trunk/; revision=40065
This commit is contained in:
@@ -850,7 +850,6 @@ NTSTATUS TCPGetSockAddress
|
||||
AddressIP->Address[0].AddressType = TDI_ADDRESS_TYPE_IP;
|
||||
AddressIP->Address[0].Address[0].sin_port = GetRemote ? RemotePort : LocalPort;
|
||||
AddressIP->Address[0].Address[0].in_addr = GetRemote ? RemoteAddress : LocalAddress;
|
||||
AddressIP->Address[1].AddressLength = TDI_ADDRESS_LENGTH_IP;
|
||||
|
||||
TcpipRecursiveMutexLeave( &TCPLock );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user