diff --git a/THANKS.in b/THANKS.in index 4ded0eea..ad08a777 100644 --- a/THANKS.in +++ b/THANKS.in @@ -194,3 +194,4 @@ Christian Mies Andreas Behal O'Shaughnessy Evans Aravind Gottipati +Kyle Tucker diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index be7810e3..88f89c43 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c @@ -254,6 +254,10 @@ main (int argc, char **argv) } /* 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: "))