xfreerdp: don't execute action script when not present

This commit is contained in:
Marc-André Moreau 2014-03-24 09:40:01 -04:00
parent 28ab490164
commit 25a7225a22
1 changed files with 3 additions and 0 deletions

View File

@ -138,6 +138,9 @@ int xf_event_execute_action_script(xfContext* xfc, XEvent* event)
char buffer[1024] = { 0 };
char command[1024] = { 0 };
if (!xfc->actionScript)
return 1;
if (event->type > (sizeof(X11_EVENT_STRINGS) / sizeof(const char*)))
return 1;