Skip to content

Commit

Permalink
When ENGINE_add finds that id or name is missing, actually return
Browse files Browse the repository at this point in the history
Reviewed-by: Matt Caswell <matt@openssl.org>
  • Loading branch information
levitte committed Oct 8, 2015
1 parent 8314146 commit 5850cc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crypto/engine/eng_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 5850cc7

Please sign in to comment.