summaryrefslogtreecommitdiffstats
path: root/net/nagios-plugins/files/patch-check_mysql.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/nagios-plugins/files/patch-check_mysql.c')
-rw-r--r--net/nagios-plugins/files/patch-check_mysql.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/nagios-plugins/files/patch-check_mysql.c b/net/nagios-plugins/files/patch-check_mysql.c
new file mode 100644
index 0000000..68abe17
--- /dev/null
+++ b/net/nagios-plugins/files/patch-check_mysql.c
@@ -0,0 +1,11 @@
+--- plugins/check_mysql.c.orig Fri Nov 15 02:04:51 2002
++++ plugins/check_mysql.c Tue Nov 26 15:12:58 2002
+@@ -207,7 +207,7 @@
+ if (strlen(db) == 0 && argc > c)
+ db = argv[c++];
+
+- if (is_intnonneg (argv[c]))
++ if (argc > c && is_intnonneg (argv[c]))
+ db_port = atoi (argv[c++]);
+
+ return validate_arguments ();
OpenPOWER on IntegriCloud