GUACAMOLE-424: Prevent null pointer dereference for vnc client display and cursor

This commit is contained in:
itsankoff 2017-11-02 19:53:17 +02:00
parent 15f6c4f3dc
commit bbafa00df0

View File

@ -112,7 +112,7 @@ int guac_vnc_user_leave_handler(guac_user* user) {
guac_vnc_client* vnc_client = (guac_vnc_client*) user->client->data; guac_vnc_client* vnc_client = (guac_vnc_client*) user->client->data;
if (vnc_client && vnc_client->display && vnc_client->display->cursor) { if (vnc_client->display && vnc_client->display->cursor) {
/* Update shared cursor state */ /* Update shared cursor state */
guac_common_cursor_remove_user(vnc_client->display->cursor, user); guac_common_cursor_remove_user(vnc_client->display->cursor, user);
} }