components/net-snmp/patches/018.6932608.systemstats_common.patch
author Stacey Marshall <Stacey.Marshall@Oracle.COM>
Tue, 22 Apr 2014 11:07:09 +0100
branchs11u1-sru
changeset 3101 3855f970a9cc
parent 252 ee0fb1eabcbf
permissions -rw-r--r--
18452930 Upgrade Solaris to BIND 9.6-ESV-R11 15609922 SUNBT6909705 BIND 9.6.x test T:dst:2:a fails as of onnv_119 18390583 problem in SERVICE/DNS-SERVER

--- patch/net-snmp-5.4.1-64/agent/mibgroup/ip-mib/data_access/systemstats_common.c	Tue Feb  8 13:58:36 2005
+++ net-snmp-5.4.1/agent/mibgroup/ip-mib/data_access/systemstats_common.c	Mon Aug  2 05:21:15 2010
@@ -339,7 +339,7 @@
      */
     if (0 == need_wrap_check) {
         SNMP_FREE(prev_vals->old_stats);
-    }
+    } else {
     
     /*
      * update old stats from new stats.
@@ -346,6 +346,7 @@
      * careful - old_stats is a pointer to stats...
      */
     memcpy(prev_vals->old_stats, &new_vals->stats, sizeof(new_vals->stats));
+    }
     
     return 0;
 }