Fix build WITH_TLS=no

This commit is contained in:
Roger A. Light
2019-09-11 16:16:38 +01:00
parent 9ad5fe7d95
commit 5941291bd5
+1 -1
View File
@@ -442,7 +442,6 @@ int net__tls_load_verify(struct mosquitto__listener *listener)
{
#ifdef WITH_TLS
ENGINE *engine = NULL;
#endif
int rc;
rc = SSL_CTX_load_verify_locations(listener->ssl_ctx, listener->cafile, listener->capath);
@@ -546,6 +545,7 @@ int net__tls_load_verify(struct mosquitto__listener *listener)
return rc;
}
}
#endif
return MOSQ_ERR_SUCCESS;
}