Set to NULL for safety.

pull/1907/head
Roger A. Light 5 years ago
parent 10ecae6275
commit b81f0d6782

@ -583,6 +583,7 @@ void bridge__cleanup(struct mosquitto *context)
#ifdef WITH_TLS #ifdef WITH_TLS
if(context->ssl_ctx){ if(context->ssl_ctx){
SSL_CTX_free(context->ssl_ctx); SSL_CTX_free(context->ssl_ctx);
context->ssl_ctx = NULL;
} }
#endif #endif
} }

Loading…
Cancel
Save