GUACAMOLE-662: Properly initialize nested socket index (fixes GUACAMOLE-510).
This commit is contained in:
parent
aba7b987d3
commit
47ad6f4b59
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user