From: Richard Levitte Date: Thu, 8 Oct 2015 09:53:07 +0000 (+0200) Subject: When ENGINE_add finds that id or name is missing, actually return X-Git-Tag: OpenSSL_1_1_0-pre1~451 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5850cc75ea0c1581a9034390f1ca77cadc596238;p=oweals%2Fopenssl.git When ENGINE_add finds that id or name is missing, actually return Reviewed-by: Matt Caswell --- diff --git a/crypto/engine/eng_list.c b/crypto/engine/eng_list.c index 9e80eafdde..54141f3ea6 100644 --- a/crypto/engine/eng_list.c +++ b/crypto/engine/eng_list.c @@ -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)) {