summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-01-28 07:26:05 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-01-28 07:26:05 (GMT)
commit53c65d0bcde2a4e13c3b67a4d9b367d5c4e36b02 (patch)
treed9fa8f51b1484bc7f87fae8cfb866b4643b76cdb /plugins
parentdbad749293f31ccb3af226d30b664c1c5f9b1458 (diff)
downloadmonitoring-plugins-53c65d0bcde2a4e13c3b67a4d9b367d5c4e36b02.tar.gz
missed argc check on port parameter
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@258 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_mysql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 5c7bcb0..6d6f19a 100644
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
@@ -207,7 +207,7 @@ process_arguments (int argc, char **argv)
207 if (strlen(db) == 0 && argc > c) 207 if (strlen(db) == 0 && argc > c)
208 db = argv[c++]; 208 db = argv[c++];
209 209
210 if (is_intnonneg (argv[c])) 210 if (is_intnonneg (argv[c]) && argc > c)
211 db_port = atoi (argv[c++]); 211 db_port = atoi (argv[c++]);
212 212
213 return validate_arguments (); 213 return validate_arguments ();