diff options
author | William Leibzon <william@leibzon.org> | 2012-07-27 00:17:58 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2012-08-10 11:03:00 (GMT) |
commit | 6b844aea9f285a545ffbacb8b03e1cf7da55a69a (patch) | |
tree | 3e00b81740f31b8784b0ab019a9c318d7a1f5068 /plugins | |
parent | 66003414af98e3bd2ee7a50e2bcaa28da9746dff (diff) | |
download | monitoring-plugins-6b844aea9f285a545ffbacb8b03e1cf7da55a69a.tar.gz |
fixing bug in certificate experiation patch checking for bad warning threshold data
Diffstat (limited to 'plugins')
-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 5c8a80c..63addfc 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -285,7 +285,7 @@ process_arguments (int argc, char **argv) | |||
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 (optarg)) |
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=','; |
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c index a861a71..79fa482 100644 --- a/plugins/check_smtp.c +++ b/plugins/check_smtp.c | |||
@@ -593,7 +593,7 @@ process_arguments (int argc, char **argv) | |||
593 | #ifdef USE_OPENSSL | 593 | #ifdef USE_OPENSSL |
594 | if ((temp=strchr(optarg,','))!=NULL) { | 594 | if ((temp=strchr(optarg,','))!=NULL) { |
595 | *temp='\0'; | 595 | *temp='\0'; |
596 | if (!is_intnonneg (temp)) | 596 | if (!is_intnonneg (optarg)) |
597 | usage2 ("Invalid certificate expiration period", optarg); | 597 | usage2 ("Invalid certificate expiration period", optarg); |
598 | days_till_exp_warn = atoi(optarg); | 598 | days_till_exp_warn = atoi(optarg); |
599 | *temp=','; | 599 | *temp=','; |
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index f464b15..af3ae24 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
@@ -555,7 +555,7 @@ process_arguments (int argc, char **argv) | |||
555 | # ifdef USE_OPENSSL /* XXX */ | 555 | # ifdef USE_OPENSSL /* XXX */ |
556 | if ((temp=strchr(optarg,','))!=NULL) { | 556 | if ((temp=strchr(optarg,','))!=NULL) { |
557 | *temp='\0'; | 557 | *temp='\0'; |
558 | if (!is_intnonneg (temp)) | 558 | if (!is_intnonneg (optarg)) |
559 | usage2 (_("Invalid certificate expiration period"), optarg); days_till_exp_warn = atoi(optarg); | 559 | usage2 (_("Invalid certificate expiration period"), optarg); days_till_exp_warn = atoi(optarg); |
560 | *temp=','; | 560 | *temp=','; |
561 | temp++; | 561 | temp++; |