components/net-snmp/patches/018.6932608.systemstats_common.patch
changeset 252 ee0fb1eabcbf
equal deleted inserted replaced
251:f527656d334f 252:ee0fb1eabcbf
       
     1 --- patch/net-snmp-5.4.1-64/agent/mibgroup/ip-mib/data_access/systemstats_common.c	Tue Feb  8 13:58:36 2005
       
     2 +++ net-snmp-5.4.1/agent/mibgroup/ip-mib/data_access/systemstats_common.c	Mon Aug  2 05:21:15 2010
       
     3 @@ -339,7 +339,7 @@
       
     4       */
       
     5      if (0 == need_wrap_check) {
       
     6          SNMP_FREE(prev_vals->old_stats);
       
     7 -    }
       
     8 +    } else {
       
     9      
       
    10      /*
       
    11       * update old stats from new stats.
       
    12 @@ -346,6 +346,7 @@
       
    13       * careful - old_stats is a pointer to stats...
       
    14       */
       
    15      memcpy(prev_vals->old_stats, &new_vals->stats, sizeof(new_vals->stats));
       
    16 +    }
       
    17      
       
    18      return 0;
       
    19  }