When ENGINE_add finds that id or name is missing, actually return
Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
parent
8314146ac5
commit
5850cc75ea
@ -260,6 +260,7 @@ int ENGINE_add(ENGINE *e)
|
|||||||
}
|
}
|
||||||
if ((e->id == NULL) || (e->name == NULL)) {
|
if ((e->id == NULL) || (e->name == NULL)) {
|
||||||
ENGINEerr(ENGINE_F_ENGINE_ADD, ENGINE_R_ID_OR_NAME_MISSING);
|
ENGINEerr(ENGINE_F_ENGINE_ADD, ENGINE_R_ID_OR_NAME_MISSING);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
CRYPTO_w_lock(CRYPTO_LOCK_ENGINE);
|
CRYPTO_w_lock(CRYPTO_LOCK_ENGINE);
|
||||||
if (!engine_list_add(e)) {
|
if (!engine_list_add(e)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user