necouchman commented on a change in pull request #217: GUACAMOLE-414: Implement
TLS Write Locking Callbacks
URL: https://github.com/apache/guacamole-server/pull/217#discussion_r264059906
##########
File path: src/protocols/vnc/vnc.c
##########
@@ -182,6 +247,11 @@ void* guac_vnc_client_thread(void* data) {
rfbClientLog = guac_vnc_client_log_info;
rfbClientErr = guac_vnc_client_log_error;
+#ifdef ENABLE_VNC_TLS_LOCKING
+ /* Initialize the write lock */
+ pthread_mutex_init(&(vnc_client->tls_lock), NULL);
Review comment:
Moved this to client.c and added `pthread_mutex_destroy()` call.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services