From 6b844aea9f285a545ffbacb8b03e1cf7da55a69a Mon Sep 17 00:00:00 2001 From: William Leibzon Date: Thu, 26 Jul 2012 17:17:58 -0700 Subject: fixing bug in certificate experiation patch checking for bad warning threshold data --- plugins/check_tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/check_tcp.c') 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++; -- cgit v1.2.3-74-g34f1