[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:
Pierre Schweitzer 2018-11-18 18:56:36 +01:00
parent 007f43dd56
commit d18b1fe24b
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

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