From 915e91d9be2fb26411ddb176ed23b15741b0672c Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Fri, 24 Aug 2018 11:45:51 +0200 Subject: [PATCH] Fix build with OPENSSL_NO_ENGINE Signed-off-by: Fredrik Fornwall --- lib/net_mosq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/net_mosq.c b/lib/net_mosq.c index d593c7b2..5494abae 100644 --- a/lib/net_mosq.c +++ b/lib/net_mosq.c @@ -103,7 +103,9 @@ void net__cleanup(void) #if OPENSSL_VERSION_NUMBER < 0x10100000L ERR_remove_state(0); #endif - ENGINE_cleanup(); + #ifndef OPENSSL_NO_ENGINE + ENGINE_cleanup(); + #endif CONF_modules_unload(1); ERR_free_strings(); EVP_cleanup();