diff --git a/src/libguac/socket-nest.c b/src/libguac/socket-nest.c index 6acac7d9..0c7d4711 100644 --- a/src/libguac/socket-nest.c +++ b/src/libguac/socket-nest.c @@ -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 */