From b4c86df6f581f5913917ba792d4760f94e8625d1 Mon Sep 17 00:00:00 2001 From: Roger Light Date: Sun, 25 Apr 2021 22:28:52 +0100 Subject: [PATCH] Fix missing control path. Closes #2190. Thanks to RengeRenge. --- lib/options.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/options.c b/lib/options.c index c7f739aa..ed2fca24 100644 --- a/lib/options.c +++ b/lib/options.c @@ -270,8 +270,7 @@ int mosquitto_string_option(struct mosquitto *mosq, enum mosq_opt_t option, cons switch(option){ case MOSQ_OPT_TLS_ENGINE: -#ifdef WITH_TLS -# if !defined(OPENSSL_NO_ENGINE) +#if defined(WITH_TLS) && !defined(OPENSSL_NO_ENGINE) eng = ENGINE_by_id(value); if(!eng){ return MOSQ_ERR_INVAL; @@ -282,7 +281,6 @@ int mosquitto_string_option(struct mosquitto *mosq, enum mosq_opt_t option, cons return MOSQ_ERR_NOMEM; } return MOSQ_ERR_SUCCESS; -#endif #else return MOSQ_ERR_NOT_SUPPORTED; #endif