From 2bab2ce6e2cf369ac2b5d53baca3d9675dfc7933 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 8 Oct 2015 11:53:07 +0200 Subject: 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 3384e31..83c95d5 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)) { -- 1.7.12.1