From 363c8fd572b19aa085dad8da6d7a5dd89930bf54 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 8 Oct 2015 11:53:07 +0200 Subject: [PATCH] When ENGINE_add finds that id or name is missing, actually return Reviewed-by: Matt Caswell (cherry picked from commit 5850cc75ea0c1581a9034390f1ca77cadc596238) --- crypto/engine/eng_list.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/engine/eng_list.c b/crypto/engine/eng_list.c index 3384e31828..83c95d56f4 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)) { -- 2.25.1