From 0440707db732a3b3fa410e534c40fda871b09150 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 16 Mar 2005 03:49:54 +0000 Subject: [PATCH] check protocol in proc_port --- src/os/win32/win32_sigar.c | 4 ++++ 1 file changed, 4 insertions(+) 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);