projects
/
profile
/
ivi
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1482b9e
)
wayland-server: fix crash on invalid resource
author
Mathias Fiedler
<Mathias.Fiedler@xse.de>
Tue, 11 Oct 2011 17:58:18 +0000
(13:58 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 11 Oct 2011 17:58:18 +0000
(13:58 -0400)
Using display_resource to post error about invalid resource.
Reviewed-by: Tiago Vignatti <tiago.vignatti@intel.com>
src/wayland-server.c
patch
|
blob
|
history
diff --git
a/src/wayland-server.c
b/src/wayland-server.c
index
4ee7796
..
a6cd88d
100644
(file)
--- 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;