mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 08:50:24 +08:00
[IPHLPAPI] Properly count UDP entries
Fixes crash when running netstat -a with no TCP connections but with UDP connections CORE-5401
This commit is contained in:
@@ -651,7 +651,7 @@ PMIB_UDPTABLE getUdpTable(void)
|
||||
|
||||
TRACE("called.\n");
|
||||
|
||||
totalNumber = getNumTcpEntries();
|
||||
totalNumber = getNumUdpEntries();
|
||||
|
||||
status = openTcpFile( &tcpFile, FILE_READ_DATA );
|
||||
if( !NT_SUCCESS(status) ) {
|
||||
|
||||
Reference in New Issue
Block a user