summaryrefslogtreecommitdiff
path: root/Xtranssock.c
diff options
context:
space:
mode:
Diffstat (limited to 'Xtranssock.c')
-rw-r--r--Xtranssock.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Xtranssock.c b/Xtranssock.c
index 9b52c35..83a7b91 100644
--- a/Xtranssock.c
+++ b/Xtranssock.c
@@ -865,9 +865,10 @@ TRANS(SocketCreateListener) (XtransConnInfo ciptr,
if (errno == EADDRINUSE) {
if (flags & ADDR_IN_USE_ALLOWED)
break;
- } else
- return TRANS_ADDR_IN_USE;
-
+ else
+ return TRANS_ADDR_IN_USE;
+ }
+
if (retry-- == 0) {
PRMSG (1, "SocketCreateListener: failed to bind listener\n",
0, 0, 0);