fixing bug in certificate experiation patch checking for bad warning threshold data

This commit is contained in:
William Leibzon 2012-07-26 17:17:58 -07:00 committed by Holger Weiss
parent 66003414af
commit 6b844aea9f
3 changed files with 3 additions and 3 deletions

View file

@ -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=',';

View file

@ -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=',';

View file

@ -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++;