diff options
| author | William Leibzon <william@leibzon.org> | 2012-07-26 17:17:58 -0700 |
|---|---|---|
| committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2012-08-10 13:03:00 +0200 |
| commit | 6b844aea9f285a545ffbacb8b03e1cf7da55a69a (patch) | |
| tree | 3e00b81740f31b8784b0ab019a9c318d7a1f5068 /plugins/check_tcp.c | |
| 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/check_tcp.c')
| -rw-r--r-- | plugins/check_tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 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++; |
