From 4610d8dc00f4ef1c6dd2538b1d8e4304d135562d Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 10 Mar 2010 13:48:35 +0000 Subject: [PATCH] don't leave bogus errors in the queue --- apps/req.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/req.c b/apps/req.c index 314197de83..9f55cdeabd 100644 --- a/apps/req.c +++ b/apps/req.c @@ -1433,11 +1433,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)) -- 2.25.1