summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Fiedler <Mathias.Fiedler@xse.de>2011-10-11 13:58:18 -0400
committerKristian Høgsberg <krh@bitplanet.net>2011-10-11 13:58:18 -0400
commitc8dbd8cf9e0199f3bb6c9ff16287f1d8f435abfb (patch)
tree5069208b907de0b24766df2417284dc8ddbec245
parent1482b9e906fb80c3760cdefe12b89785bd3fd1a8 (diff)
wayland-server: fix crash on invalid resource
Using display_resource to post error about invalid resource. Reviewed-by: Tiago Vignatti <tiago.vignatti@intel.com>
-rw-r--r--src/wayland-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wayland-server.c b/src/wayland-server.c
index 4ee7796..a6cd88d 100644
--- a/src/wayland-server.c
+++ b/src/wayland-server.c
@@ -158,7 +158,7 @@ wl_client_connection_data(int fd, uint32_t mask, void *data)
resource = wl_map_lookup(&client->objects, p[0]);
if (resource == NULL) {
- wl_resource_post_error(resource,
+ wl_resource_post_error(client->display_resource,
WL_DISPLAY_ERROR_INVALID_OBJECT,
"invalid object %d", p[0]);
break;