https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d18b1fe24b933c3d214cb…
commit d18b1fe24b933c3d214cbcd9c116d0bf094329fb
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Nov 18 18:56:36 2018 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sun Nov 18 18:56:36 2018 +0100
[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 040a48088d..242626ea7e 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) ) {