components/net-snmp/patches/039.17002960.kernel_sunos5.patch
author Jiri Sasek <Jiri.Sasek@Oracle.COM>
Wed, 27 Jan 2016 18:45:20 -0800
changeset 5398 f499dad29f21
parent 1748 5b1802fcf350
permissions -rw-r--r--
22662663 samba: Uprev to 4.1.22 22526544 problem in UTILITY/SAMBA 22526597 problem in UTILITY/SAMBA 22526577 problem in UTILITY/SAMBA

--- 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) {