diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-03-10 13:48:09 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-03-10 13:48:09 +0000 |
commit | 77163b6234ce5d032285d0805e1de68bdeba0b64 (patch) | |
tree | d17727ac9fd37bd2eaaca5ea40a9a9da53c9dd22 /apps | |
parent | e3a510f8a6e277fa1ab669e4fe25b8e1d1324214 (diff) |
don't leave bogus errors in the queue
Diffstat (limited to 'apps')
-rw-r--r-- | apps/req.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/req.c b/apps/req.c index 65cb19b4ee..820cd18fc7 100644 --- a/apps/req.c +++ b/apps/req.c @@ -1336,11 +1336,17 @@ start2: for (;;) BIO_snprintf(buf,sizeof buf,"%s_min",type); if (!NCONF_get_number(req_conf,attr_sect,buf, &n_min)) + { + ERR_clear_error(); n_min = -1; + } BIO_snprintf(buf,sizeof buf,"%s_max",type); if (!NCONF_get_number(req_conf,attr_sect,buf, &n_max)) + { + ERR_clear_error(); n_max = -1; + } if (!add_attribute_object(req, v->value,def,value,nid,n_min,n_max, chtype)) |