[Nagiosplug-checkins] nagiosplug/plugins check_snmp.c,1.62,1.63

Ton Voon tonvoon at users.sourceforge.net
Thu Oct 19 21:13:47 CEST 2006


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv29901/plugins

Modified Files:
	check_snmp.c 
Log Message:
type variable not cleared in Sol 10 (Kyle Tucker)


Index: check_snmp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_snmp.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- check_snmp.c	21 Jun 2006 11:05:00 -0000	1.62
+++ check_snmp.c	19 Oct 2006 19:13:45 -0000	1.63
@@ -254,6 +254,10 @@
 		}
 
 		/* We strip out the datatype indicator for PHBs */
+
+		/* Clean up type array - Sol10 does not necessarily zero it out */
+		bzero(type, sizeof(type));
+
 		if (strstr (response, "Gauge: "))
 			show = strstr (response, "Gauge: ") + 7;
 		else if (strstr (response, "Gauge32: "))





More information about the Commits mailing list