compositor-wayland: avoid possible NULL deref in handle_keymap
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Tue, 6 May 2014 21:50:03 +0000 (14:50 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 6 May 2014 22:41:02 +0000 (15:41 -0700)
commitd8d4701864e8a0e5a1c97e12478d485e814d9941
treeb50e372d892955bc417633af396f9a409880b607
parent67072d03d3d4eda1618fd5a97b823585cc7e6fbe
compositor-wayland: avoid possible NULL deref in handle_keymap

If data is NULL, then we jumped to error which attempts to
dereference data.  Instead, just close(fd) and return when
data is NULL.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
src/compositor-wayland.c