diff options
author | Pekka Paalanen <ppaalanen@gmail.com> | 2012-03-22 14:24:18 +0200 |
---|---|---|
committer | Pekka Paalanen <ppaalanen@gmail.com> | 2012-04-25 09:37:42 +0300 |
commit | 9f91feb5d9c56d7047dbeac4e1612190ca77ab4d (patch) | |
tree | b4874660fa47d8bf205224145c2c84d4a5f6f50e | |
parent | ff50f6bfc44bd072aa8806f976718d30468fa2c2 (diff) |
server: do not create wl_client if accept() failed
Spotted during wl_os_accept_cloexec() work.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
-rw-r--r-- | src/wayland-server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wayland-server.c b/src/wayland-server.c index e8173fb..97d8918 100644 --- a/src/wayland-server.c +++ b/src/wayland-server.c @@ -906,8 +906,8 @@ socket_data(int fd, uint32_t mask, void *data) &length); if (client_fd < 0) fprintf(stderr, "failed to accept, errno: %d\n", errno); - - wl_client_create(display, client_fd); + else + wl_client_create(display, client_fd); return 1; } |