don't leave bogus errors in the queue
authorDr. Stephen Henson <steve@openssl.org>
Wed, 10 Mar 2010 13:48:21 +0000 (13:48 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 10 Mar 2010 13:48:21 +0000 (13:48 +0000)
apps/req.c

index 65cb19b4ee986d504af026cb8d4fb28f42d28213..820cd18fc70d02e3149560abaddb28fc9097ed2d 100644 (file)
@@ -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))