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:
parent
e06433d9ba
commit
74489a3668
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user