don't leave bogus errors in the queue
This commit is contained in:
		@@ -1433,11 +1433,17 @@ start2:			for (;;)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
				BIO_snprintf(buf,sizeof buf,"%s_min",type);
 | 
									BIO_snprintf(buf,sizeof buf,"%s_min",type);
 | 
				
			||||||
				if (!NCONF_get_number(req_conf,attr_sect,buf, &n_min))
 | 
									if (!NCONF_get_number(req_conf,attr_sect,buf, &n_min))
 | 
				
			||||||
 | 
										{
 | 
				
			||||||
 | 
										ERR_clear_error();
 | 
				
			||||||
					n_min = -1;
 | 
										n_min = -1;
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				BIO_snprintf(buf,sizeof buf,"%s_max",type);
 | 
									BIO_snprintf(buf,sizeof buf,"%s_max",type);
 | 
				
			||||||
				if (!NCONF_get_number(req_conf,attr_sect,buf, &n_max))
 | 
									if (!NCONF_get_number(req_conf,attr_sect,buf, &n_max))
 | 
				
			||||||
 | 
										{
 | 
				
			||||||
 | 
										ERR_clear_error();
 | 
				
			||||||
					n_max = -1;
 | 
										n_max = -1;
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				if (!add_attribute_object(req,
 | 
									if (!add_attribute_object(req,
 | 
				
			||||||
					v->value,def,value,nid,n_min,n_max, chtype))
 | 
										v->value,def,value,nid,n_min,n_max, chtype))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user