From d18b1fe24b933c3d214cbcd9c116d0bf094329fb Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 18 Nov 2018 18:56:36 +0100 Subject: [PATCH] [IPHLPAPI] Properly count UDP entries Fixes crash when running netstat -a with no TCP connections but with UDP connections CORE-5401 --- dll/win32/iphlpapi/ipstats_reactos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/win32/iphlpapi/ipstats_reactos.c b/dll/win32/iphlpapi/ipstats_reactos.c index 040a48088d3..242626ea7e8 100644 --- a/dll/win32/iphlpapi/ipstats_reactos.c +++ b/dll/win32/iphlpapi/ipstats_reactos.c @@ -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) ) { -- 2.17.1