diff options
-rw-r--r-- | plugins/check_http.c | 2 | ||||
-rw-r--r-- | plugins/check_smtp.c | 2 | ||||
-rw-r--r-- | plugins/check_tcp.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index 5c8a80c6..63addfcc 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -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=','; diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c index a861a71e..79fa4824 100644 --- a/plugins/check_smtp.c +++ b/plugins/check_smtp.c @@ -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=','; diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index f464b15f..af3ae241 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c @@ -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++; |