Commit ee9cb83d authored by Giovanni Panozzo's avatar Giovanni Panozzo

VNC: Fix possible crash during connection

parent 9cb03a06
......@@ -1425,6 +1425,9 @@ static void remmina_plugin_vnc_release_key(RemminaProtocolWidget *gp, guint16 ke
RemminaKeyVal *k;
gint i;
if (!gpdata)
return;
if (keycode == 0) {
/* Send all release key events for previously pressed keys */
for (i = 0; i < gpdata->pressed_keys->len; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment