GUACAMOLE-662: Properly initialize nested socket index (fixes GUACAMOLE-510).

This commit is contained in:
Michael Jumper 2019-01-06 15:43:55 -08:00
parent aba7b987d3
commit 47ad6f4b59

View File

@ -129,8 +129,9 @@ guac_socket* guac_socket_nest(guac_socket* parent, int index) {
guac_socket* socket = guac_socket_alloc();
__guac_socket_nest_data* data = malloc(sizeof(__guac_socket_nest_data));
/* Store file descriptor as socket data */
/* Store nested socket details as socket data */
data->parent = parent;
data->index = index;
socket->data = data;
/* Set write and free handlers */