From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/318264-check_snmp_max_oids.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 web/attachments/318264-check_snmp_max_oids.patch (limited to 'web/attachments/318264-check_snmp_max_oids.patch') diff --git a/web/attachments/318264-check_snmp_max_oids.patch b/web/attachments/318264-check_snmp_max_oids.patch new file mode 100644 index 0000000..c2a3217 --- /dev/null +++ b/web/attachments/318264-check_snmp_max_oids.patch @@ -0,0 +1,15 @@ +diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c +index 3dc52df..41a5ea1 100644 +--- a/plugins/check_snmp.c ++++ b/plugins/check_snmp.c +@@ -527,9 +527,8 @@ process_arguments (int argc, char **argv) + needmibs = TRUE; + } + oids = calloc(MAX_OIDS, sizeof (char *)); +- for (ptr = strtok(optarg, ", "); ptr != NULL; ptr = strtok(NULL, ", ")) { ++ for (ptr = strtok(optarg, ", "); ptr != NULL && j < MAX_OIDS; ptr = strtok(NULL, ", "), j++) { + oids[j] = strdup(ptr); +- j++; + } + numoids = j; + if (c == 'E' || c == 'e') { -- cgit v1.2.3-74-g34f1