diff options
author | Patrick Steuer <patrick.steuer@de.ibm.com> | 2017-12-18 22:47:01 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2018-01-08 13:22:16 -0500 |
commit | 1a49ff5a4ff290b988cd898b41c8504749a468fc (patch) | |
tree | 6d3f859b3293956518cca90e82120c5d27f17643 /crypto | |
parent | fd6a0f5e525d187d7f1cd030e56d8aba9cafcbbf (diff) |
crypto/engine/eng_list.c: compare getenv rv to NULL instead of 0
Signed-off-by: Patrick Steuer <patrick.steuer@de.ibm.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4958)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/engine/eng_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/engine/eng_list.c b/crypto/engine/eng_list.c index b335ac1651..53e138d5cb 100644 --- a/crypto/engine/eng_list.c +++ b/crypto/engine/eng_list.c @@ -317,7 +317,7 @@ ENGINE *ENGINE_by_id(const char *id) * Prevent infinite recursion if we're looking for the dynamic engine. */ if (strcmp(id, "dynamic")) { - if ((load_dir = getenv("OPENSSL_ENGINES")) == 0) + if ((load_dir = getenv("OPENSSL_ENGINES")) == NULL) load_dir = ENGINESDIR; iterator = ENGINE_by_id("dynamic"); if (!iterator || !ENGINE_ctrl_cmd_string(iterator, "ID", id, 0) || |