Author: mladen.turk(a)jboss.com
Date: 2007-09-12 14:16:08 -0400 (Wed, 12 Sep 2007)
New Revision: 1024
Modified:
trunk/sight/native/os/linux/udpstat.c
Log:
Fix missing udp
Modified: trunk/sight/native/os/linux/udpstat.c
===================================================================
--- trunk/sight/native/os/linux/udpstat.c 2007-09-12 18:10:32 UTC (rev 1023)
+++ trunk/sight/native/os/linux/udpstat.c 2007-09-12 18:16:08 UTC (rev 1024)
@@ -112,6 +112,7 @@
if (iftype == 1) {
if (!(tnet = sight_arr_rload(PROC_NET_FS "sockstat"))) {
throwAprException(_E, apr_get_os_error());
+ return;
}
for (i = 0; i < tnet->siz; i++) {
if (memcmp(tnet->arr.ca[i], "UDP: inuse ", 11) == 0) {
@@ -123,6 +124,7 @@
else if (iftype == 2) {
if (!(tnet = sight_arr_rload(PROC_NET_FS "sockstat6"))) {
throwAprException(_E, apr_get_os_error());
+ return;
}
for (i = 0; i < tnet->siz; i++) {
if (memcmp(tnet->arr.ca[i], "UDP6: inuse ", 12) == 0) {
Show replies by date