Commit 363c8fd5 authored by Richard Levitte's avatar Richard Levitte
Browse files

When ENGINE_add finds that id or name is missing, actually return



Reviewed-by: default avatarMatt Caswell <matt@openssl.org>
(cherry picked from commit 5850cc75)
parent 91dc4497
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)) {