summaryrefslogtreecommitdiffstats
path: root/web/attachments/420257-check_snmp_numeric_fix.diff
blob: 8c645e16bd0165198adcfbf8b451529d45d94df3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
*** check_snmp.c	Thu Aug  4 14:33:54 2011
--- check_snmp_numeric_fix.c	Thu Aug  4 14:33:13 2011
***************
*** 331,337 ****
  		/* Clean up type array - Sol10 does not necessarily zero it out */
  		bzero(type, sizeof(type));
  
! 		is_counter=0;
  		/* We strip out the datatype indicator for PHBs */
  		if (strstr (response, "Gauge: ")) {
  			show = strstr (response, "Gauge: ") + 7;
--- 331,338 ----
  		/* Clean up type array - Sol10 does not necessarily zero it out */
  		bzero(type, sizeof(type));
  
! 		is_counter = 0;
! 		is_numeric = 0;
  		/* We strip out the datatype indicator for PHBs */
  		if (strstr (response, "Gauge: ")) {
  			show = strstr (response, "Gauge: ") + 7;