提交 1a49ff5a 编写于 作者: P Patrick Steuer 提交者: Rich Salz

crypto/engine/eng_list.c: compare getenv rv to NULL instead of 0

Signed-off-by: NPatrick Steuer <patrick.steuer@de.ibm.com>
Reviewed-by: NTim Hudson <tjh@openssl.org>
Reviewed-by: NBen Kaduk <kaduk@mit.edu>
Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4958)
上级 fd6a0f5e
...@@ -317,7 +317,7 @@ ENGINE *ENGINE_by_id(const char *id) ...@@ -317,7 +317,7 @@ ENGINE *ENGINE_by_id(const char *id)
* Prevent infinite recursion if we're looking for the dynamic engine. * Prevent infinite recursion if we're looking for the dynamic engine.
*/ */
if (strcmp(id, "dynamic")) { if (strcmp(id, "dynamic")) {
if ((load_dir = getenv("OPENSSL_ENGINES")) == 0) if ((load_dir = getenv("OPENSSL_ENGINES")) == NULL)
load_dir = ENGINESDIR; load_dir = ENGINESDIR;
iterator = ENGINE_by_id("dynamic"); iterator = ENGINE_by_id("dynamic");
if (!iterator || !ENGINE_ctrl_cmd_string(iterator, "ID", id, 0) || if (!iterator || !ENGINE_ctrl_cmd_string(iterator, "ID", id, 0) ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册