GUACAMOLE-424: Fix null pointer dereference for vnc client display
This commit is contained in:
parent
95be88be19
commit
15f6c4f3dc
@ -112,8 +112,10 @@ int guac_vnc_user_leave_handler(guac_user* user) {
|
||||
|
||||
guac_vnc_client* vnc_client = (guac_vnc_client*) user->client->data;
|
||||
|
||||
if (vnc_client && vnc_client->display && vnc_client->display->cursor) {
|
||||
/* Update shared cursor state */
|
||||
guac_common_cursor_remove_user(vnc_client->display->cursor, user);
|
||||
}
|
||||
|
||||
/* Free settings if not owner (owner settings will be freed with client) */
|
||||
if (!user->owner) {
|
||||
|
Loading…
Reference in New Issue
Block a user