From 1a49ff5a4ff290b988cd898b41c8504749a468fc Mon Sep 17 00:00:00 2001 From: Patrick Steuer Date: Mon, 18 Dec 2017 22:47:01 +0100 Subject: [PATCH] crypto/engine/eng_list.c: compare getenv rv to NULL instead of 0 Signed-off-by: Patrick Steuer Reviewed-by: Tim Hudson Reviewed-by: Ben Kaduk Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/4958) --- crypto/engine/eng_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) || -- 2.25.1