GUACAMOLE-117: Close socket file descriptor if SSL/TLS handshake fails.

This commit is contained in:
Michael Jumper 2016-11-11 12:25:28 -08:00
parent a46ce4cc3b
commit ca2b426252

View File

@ -377,6 +377,7 @@ void* guacd_connection_thread(void* data) {
socket = guac_socket_open_secure(ssl_context, connected_socket_fd);
if (socket == NULL) {
guacd_log_guac_error(GUAC_LOG_ERROR, "Unable to set up SSL/TLS");
close(connected_socket_fd);
free(params);
return NULL;
}