- 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:
Cameron Gutman 2009-03-16 19:26:38 +00:00
parent ae440999df
commit 08c383c3de

View file

@ -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 );