diff --git a/src/os/win32/win32_sigar.c b/src/os/win32/win32_sigar.c index 01f03721..887dfd20 100644 --- a/src/os/win32/win32_sigar.c +++ b/src/os/win32/win32_sigar.c @@ -2164,6 +2164,10 @@ SIGAR_DECLARE(int) sigar_proc_port_get(sigar_t *sigar, return SIGAR_ENOTIMPL; } + if (protocol != SIGAR_NETCONN_TCP) { + return SIGAR_ENOTIMPL; /* XXX UDP */ + } + rc = sigar->get_tcpx_table(&tcp, FALSE, GetProcessHeap(), 2, 2);