components/net-snmp/patches/039.17002960.kernel_sunos5.patch
author Mohana Rao Gorai <mohana.gorai@oracle.com>
Wed, 10 Dec 2014 20:16:00 -0800
branchs11-update
changeset 3535 a05569ec203e
parent 3018 9bcd8e039f5c
permissions -rw-r--r--
19292724 printing to a raw queue is delayed by 4 seconds

--- net-snmp-5.4.1.old/agent/mibgroup/kernel_sunos5.c	2014-02-26 05:32:10.697219080 -0500
+++ net-snmp-5.4.1/agent/mibgroup/kernel_sunos5.c	2014-02-26 05:31:28.588532860 -0500
@@ -296,7 +296,7 @@
 	goto Return;
     }
    
-    if ((ks = kstat_lookup(ksc, statname, 0, "link")) != NULL)
+    if ((ks = kstat_lookup(ksc, statname, -1, "link")) != NULL)
     {
         kid = kstat_read(ksc, ks, NULL);
         if (kid == -1) {