diff options
author | marha <marha@users.sourceforge.net> | 2010-03-20 15:17:43 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-03-20 15:17:43 +0000 |
commit | 4f736752bbdf3bbf1a6325af7ad470198aa5a82a (patch) | |
tree | 77c1f6fc206b313a68ffe6f956e1cbb089e7f9db /libxcb/src/xcb_auth.c | |
parent | 501c558c841fc5bc1a67e6dc8d33c8605276f504 (diff) | |
download | vcxsrv-4f736752bbdf3bbf1a6325af7ad470198aa5a82a.tar.gz vcxsrv-4f736752bbdf3bbf1a6325af7ad470198aa5a82a.tar.bz2 vcxsrv-4f736752bbdf3bbf1a6325af7ad470198aa5a82a.zip |
libxcb git update
Diffstat (limited to 'libxcb/src/xcb_auth.c')
-rw-r--r-- | libxcb/src/xcb_auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libxcb/src/xcb_auth.c b/libxcb/src/xcb_auth.c index 104f2f07b..00aad23c5 100644 --- a/libxcb/src/xcb_auth.c +++ b/libxcb/src/xcb_auth.c @@ -260,10 +260,10 @@ int _xcb_get_auth_info(int fd, xcb_auth_info_t *info, int display) * case anyway.*/ if (getpeername(fd, sockname, &socknamelen) == -1) { - if (sockname->sa_family != AF_UNIX) - return 0; /* except for AF_UNIX, sockets should have peernames */ if (getsockname(fd, sockname, &socknamelen) == -1) return 0; /* can only authenticate sockets */ + if (sockname->sa_family != AF_UNIX) + return 0; /* except for AF_UNIX, sockets should have peernames */ gotsockname = 1; } |