Fix authentication on hpux and Hurd
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Fri, 12 Mar 2010 22:51:32 +0000 (23:51 +0100)
committerJulien Danjou <julien@danjou.info>
Sat, 13 Mar 2010 15:20:12 +0000 (16:20 +0100)
libxcb's 010e5661 (Fix XDM-AUTHORIZATION-1 (bug #14202)) mistakenly
inverted a few lines of code, making local socket authentication fail on
hpux and Hurd: when getpeername fails, sockname needs to be initialized
by getsockname before its address family can be checked.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Julien Danjou <julien@danjou.info>

No differences found