diff options
-rw-r--r-- | plugins/check_http.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index 37cf01a..5c8a80c 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -284,18 +284,18 @@ process_arguments (int argc, char **argv) | |||
284 | case 'C': /* Check SSL cert validity */ | 284 | case 'C': /* Check SSL cert validity */ |
285 | #ifdef HAVE_SSL | 285 | #ifdef HAVE_SSL |
286 | if ((temp=strchr(optarg,','))!=NULL) { | 286 | if ((temp=strchr(optarg,','))!=NULL) { |
287 | *temp='\0'; | 287 | *temp='\0'; |
288 | if (!is_intnonneg (temp)) | 288 | if (!is_intnonneg (temp)) |
289 | usage2 (_("Invalid certificate expiration period"), optarg); | 289 | usage2 (_("Invalid certificate expiration period"), optarg); |
290 | days_till_exp_warn = atoi(optarg); | 290 | days_till_exp_warn = atoi(optarg); |
291 | *temp=','; | 291 | *temp=','; |
292 | temp++; | 292 | temp++; |
293 | if (!is_intnonneg (temp)) | 293 | if (!is_intnonneg (temp)) |
294 | usage2 (_("Invalid certificate expiration period"), temp); | 294 | usage2 (_("Invalid certificate expiration period"), temp); |
295 | days_till_exp_crit = atoi (temp); | 295 | days_till_exp_crit = atoi (temp); |
296 | } | 296 | } |
297 | else { | 297 | else { |
298 | days_till_exp_crit=0; | 298 | days_till_exp_crit=0; |
299 | if (!is_intnonneg (optarg)) | 299 | if (!is_intnonneg (optarg)) |
300 | usage2 (_("Invalid certificate expiration period"), optarg); | 300 | usage2 (_("Invalid certificate expiration period"), optarg); |
301 | days_till_exp_warn = atoi (optarg); | 301 | days_till_exp_warn = atoi (optarg); |