mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-25 19:00:23 -05:00
missed argc check on port parameter
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@258 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
dbad749293
commit
53c65d0bcd
1 changed files with 1 additions and 1 deletions
|
|
@ -207,7 +207,7 @@ process_arguments (int argc, char **argv)
|
|||
if (strlen(db) == 0 && argc > c)
|
||||
db = argv[c++];
|
||||
|
||||
if (is_intnonneg (argv[c]))
|
||||
if (is_intnonneg (argv[c]) && argc > c)
|
||||
db_port = atoi (argv[c++]);
|
||||
|
||||
return validate_arguments ();
|
||||
|
|
|
|||
Loading…
Reference in a new issue