summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/check_snmp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 83083a8..a4be11b 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -321,6 +321,8 @@ main (int argc, char **argv)
321 eval_method[i] & WARN_EQ || 321 eval_method[i] & WARN_EQ ||
322 eval_method[i] & WARN_NE) { 322 eval_method[i] & WARN_NE) {
323 p2 = strpbrk (p2, "0123456789"); 323 p2 = strpbrk (p2, "0123456789");
324 if (p2 == NULL)
325 terminate (STATE_UNKNOWN,"No valid data returned");
324 response_value[i] = strtoul (p2, NULL, 10); 326 response_value[i] = strtoul (p2, NULL, 10);
325 iresult = check_num (i); 327 iresult = check_num (i);
326 asprintf (&show, "%lu", response_value[i]); 328 asprintf (&show, "%lu", response_value[i]);