server: check global interface on bind
authorSimon Ser <simon.ser@intel.com>
Wed, 28 Aug 2019 14:26:52 +0000 (17:26 +0300)
committerPekka Paalanen <pq@iki.fi>
Fri, 6 Sep 2019 12:22:01 +0000 (12:22 +0000)
commite18e3e195b0f3984d41de5850da1691638a414df
tree5c5dd6552170533b86325d700d843aea03778ff3
parentb69e547fa44e99f5d802ffb301027432b38005b8
server: check global interface on bind

The interface name provided by the client isn't used at all.

Check it matches the global's interface name to prevent object interface
mismatches between the client and the server. These are especially easy to get
when mixing up global names and other IDs in the client.

Signed-off-by: Simon Ser <simon.ser@intel.com>
Closes: https://gitlab.freedesktop.org/wayland/wayland/issues/113
src/wayland-server.c