提交 74489a36 编写于 作者: R Richard Levitte

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.
上级 e06433d9
...@@ -61,7 +61,10 @@ ...@@ -61,7 +61,10 @@
static int engine_add(ENGINE *e) static int engine_add(ENGINE *e)
{ {
if (!ENGINE_by_id(ENGINE_get_id(e))) if (!ENGINE_by_id(ENGINE_get_id(e)))
{
(void)ERR_get_error();
return ENGINE_add(e); return ENGINE_add(e);
}
return 1; return 1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册