summaryrefslogtreecommitdiffstats
path: root/apps/req.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2003-01-24 01:12:01 +0000
committerDr. Stephen Henson <steve@openssl.org>2003-01-24 01:12:01 +0000
commitd3b5cb5343afa4e4ae64bee4621171e6b00aaa21 (patch)
tree308f89977f30d1eddebf02c5c596c515db47e0ef /apps/req.c
parent97e6bf6b22d75b847b5c9c0472c54ffe3169eece (diff)
Check return value of gmtime() and add error codes
where it fails in ASN1_TIME_set(). Edit asn1.h so the new error code is the same in 0.9.7 and 0.9.8, rebuild new error codes. Clear error queue in req.c if *_min or *_max is absent.
Diffstat (limited to 'apps/req.c')
-rw-r--r--apps/req.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/req.c b/apps/req.c
index 4fa5ae6fe8..3612114980 100644
--- a/apps/req.c
+++ b/apps/req.c
@@ -1318,11 +1318,17 @@ start: for (;;)
sprintf(buf,"%s_min",v->name);
if (!NCONF_get_number(req_conf,dn_sect,buf, &n_min))
+ {
+ ERR_clear_error();
n_min = -1;
+ }
sprintf(buf,"%s_max",v->name);
if (!NCONF_get_number(req_conf,dn_sect,buf, &n_max))
+ {
+ ERR_clear_error();
n_max = -1;
+ }
if (!add_DN_object(subj,v->value,def,value,nid,
n_min,n_max, chtype))