check protocol in proc_port

This commit is contained in:
Doug MacEachern 2005-03-16 03:49:54 +00:00
parent 807c8af462
commit 0440707db7
1 changed files with 4 additions and 0 deletions

View File

@ -2164,6 +2164,10 @@ SIGAR_DECLARE(int) sigar_proc_port_get(sigar_t *sigar,
return SIGAR_ENOTIMPL; return SIGAR_ENOTIMPL;
} }
if (protocol != SIGAR_NETCONN_TCP) {
return SIGAR_ENOTIMPL; /* XXX UDP */
}
rc = sigar->get_tcpx_table(&tcp, FALSE, GetProcessHeap(), rc = sigar->get_tcpx_table(&tcp, FALSE, GetProcessHeap(),
2, 2); 2, 2);