From 8d99c35a86bf298539040dbaeb3c29416cc82896 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 10 Jul 2014 16:49:13 -0700 Subject: [PATCH] GUAC-769: Ensure socket output is handled in a threadsafe manner. --- src/protocols/ssh/client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/protocols/ssh/client.c b/src/protocols/ssh/client.c index eb538aef..4f097662 100644 --- a/src/protocols/ssh/client.c +++ b/src/protocols/ssh/client.c @@ -186,6 +186,9 @@ int guac_client_init(guac_client* client, int argc, char** argv) { return -1; } + /* Ensure main socket is threadsafe */ + guac_socket_require_threadsafe(socket); + /* Send initial name */ guac_protocol_send_name(socket, client_data->hostname);