From 30d992dbe29901c44a6e7276d7ba48443e3e6a2f Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 22 Feb 2019 06:45:25 +0800 Subject: [PATCH] clean: LWS_SSL_ENABLED use vh as the macro arg name to clarify what should be given --- lib/tls/private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tls/private.h b/lib/tls/private.h index bafd1c39b..5f51b8421 100644 --- a/lib/tls/private.h +++ b/lib/tls/private.h @@ -120,7 +120,7 @@ typedef X509 lws_tls_x509; LWS_EXTERN int lws_context_init_ssl_library(const struct lws_context_creation_info *info); -#define LWS_SSL_ENABLED(context) (context->tls.use_ssl) +#define LWS_SSL_ENABLED(vh) (vh && vh->tls.use_ssl) extern const struct lws_tls_ops tls_ops_openssl, tls_ops_mbedtls;