mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-15 22:00:06 -04:00
fixing bug in certificate experiation patch checking for bad warning threshold data
This commit is contained in:
parent
66003414af
commit
6b844aea9f
3 changed files with 3 additions and 3 deletions
|
|
@ -285,7 +285,7 @@ process_arguments (int argc, char **argv)
|
|||
#ifdef HAVE_SSL
|
||||
if ((temp=strchr(optarg,','))!=NULL) {
|
||||
*temp='\0';
|
||||
if (!is_intnonneg (temp))
|
||||
if (!is_intnonneg (optarg))
|
||||
usage2 (_("Invalid certificate expiration period"), optarg);
|
||||
days_till_exp_warn = atoi(optarg);
|
||||
*temp=',';
|
||||
|
|
|
|||
|
|
@ -593,7 +593,7 @@ process_arguments (int argc, char **argv)
|
|||
#ifdef USE_OPENSSL
|
||||
if ((temp=strchr(optarg,','))!=NULL) {
|
||||
*temp='\0';
|
||||
if (!is_intnonneg (temp))
|
||||
if (!is_intnonneg (optarg))
|
||||
usage2 ("Invalid certificate expiration period", optarg);
|
||||
days_till_exp_warn = atoi(optarg);
|
||||
*temp=',';
|
||||
|
|
|
|||
|
|
@ -555,7 +555,7 @@ process_arguments (int argc, char **argv)
|
|||
# ifdef USE_OPENSSL /* XXX */
|
||||
if ((temp=strchr(optarg,','))!=NULL) {
|
||||
*temp='\0';
|
||||
if (!is_intnonneg (temp))
|
||||
if (!is_intnonneg (optarg))
|
||||
usage2 (_("Invalid certificate expiration period"), optarg); days_till_exp_warn = atoi(optarg);
|
||||
*temp=',';
|
||||
temp++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue