diff options
author | Richard Levitte <levitte@openssl.org> | 2015-10-08 11:53:07 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2015-10-08 12:41:12 +0200 |
commit | b00424792f293b49e5e581aa36a9c826d1d2d508 (patch) | |
tree | 79df87bef4f86fa7861a6c904c17f8017ea44fe9 /crypto/engine | |
parent | bb7b893d7c36803d8c5d4ca82a5a037c5fc111b9 (diff) |
When ENGINE_add finds that id or name is missing, actually return
Reviewed-by: Matt Caswell <matt@openssl.org>
(cherry picked from commit 5850cc75ea0c1581a9034390f1ca77cadc596238)
Diffstat (limited to 'crypto/engine')
-rw-r--r-- | crypto/engine/eng_list.c | 1 |
1 files changed, 1 insertions, 0 deletions
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)) { |