summaryrefslogtreecommitdiff
path: root/socket.c
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.de>2004-04-15 10:17:40 +0000
committerEgbert Eich <eich@suse.de>2004-04-15 10:17:40 +0000
commitbbfdbf2a32e0b33811a100e7b74dc2a94b6e4051 (patch)
tree85c5433de8dca77ba65f1271a2f09a2fe1f9e341 /socket.c
parent4e28ae75ceb86e2e3b51125808cbeadc3dcaeb79 (diff)
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/socket.c b/socket.c
index 6e01cdb..a5a4dc7 100644
--- a/socket.c
+++ b/socket.c
@@ -1,4 +1,4 @@
-/* $XdotOrg: socket.c,v 1.4 2001/02/09 02:05:40 xorgcvs Exp $ */
+/* $XdotOrg$ */
/* $Xorg: socket.c,v 1.4 2001/02/09 02:05:40 xorgcvs Exp $ */
/*
@@ -69,9 +69,9 @@ CreateWellKnownSockets (void)
#if defined(IPv6) && defined(AF_INET6)
chooserFd = socket (AF_INET6, SOCK_STREAM, 0);
-#else
- chooserFd = socket (AF_INET, SOCK_STREAM, 0);
+ if (chooserFd == -1)
#endif
+ chooserFd = socket (AF_INET, SOCK_STREAM, 0);
Debug ("Created chooser socket %d\n", chooserFd);
if (chooserFd == -1)
{