mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 06:32:14 +00:00
[TCPIP] In InfoTdiQueryGetConnectionTcpTable(), only return if there's a connection
This commit is contained in:
parent
f87d9caf77
commit
ce7f9211a0
1 changed files with 3 additions and 7 deletions
|
@ -186,7 +186,7 @@ TDI_STATUS InfoTdiQueryGetConnectionTcpTable(PADDRESS_FILE AddrFile,
|
|||
{
|
||||
SIZE_T Size;
|
||||
MIB_TCPROW_OWNER_PID TcpRow;
|
||||
TDI_STATUS Status = TDI_SUCCESS;
|
||||
TDI_STATUS Status = TDI_INVALID_REQUEST;
|
||||
|
||||
TI_DbgPrint(DEBUG_INFO, ("Called.\n"));
|
||||
|
||||
|
@ -211,6 +211,8 @@ TDI_STATUS InfoTdiQueryGetConnectionTcpTable(PADDRESS_FILE AddrFile,
|
|||
TcpRow.dwLocalPort = AddrFile->Port;
|
||||
TcpRow.dwRemoteAddr = EndPoint->Address.Address.IPv4Address;
|
||||
TcpRow.dwRemotePort = EndPoint->Port;
|
||||
|
||||
Status = TDI_SUCCESS;
|
||||
}
|
||||
else if (AddrFile->Connection != NULL &&
|
||||
AddrFile->Connection->SocketContext != NULL)
|
||||
|
@ -238,12 +240,6 @@ TDI_STATUS InfoTdiQueryGetConnectionTcpTable(PADDRESS_FILE AddrFile,
|
|||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
TcpRow.dwState = 0;
|
||||
TcpRow.dwRemoteAddr = 0;
|
||||
TcpRow.dwRemotePort = 0;
|
||||
}
|
||||
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue