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
1 changed files with 1 additions and 0 deletions
|
@ -260,6 +260,7 @@ int ENGINE_add(ENGINE *e)
|
|||
}
|
||||
if ((e->id == NULL) || (e->name == NULL)) {
|
||||
ENGINEerr(ENGINE_F_ENGINE_ADD, ENGINE_R_ID_OR_NAME_MISSING);
|
||||
return 0;
|
||||
}
|
||||
CRYPTO_w_lock(CRYPTO_LOCK_ENGINE);
|
||||
if (!engine_list_add(e)) {
|
||||
|
|
Loading…
Reference in a new issue