When ENGINE_by_id() couldn't find the given engine id, it generates an

error.  When checking like engine_add() is, those errors are actually
good, so remove them.
This commit is contained in:
Richard Levitte 2000-11-07 13:21:09 +00:00
parent e06433d9ba
commit 74489a3668

View File

@ -61,7 +61,10 @@
static int engine_add(ENGINE *e)
{
if (!ENGINE_by_id(ENGINE_get_id(e)))
{
(void)ERR_get_error();
return ENGINE_add(e);
}
return 1;
}