From a7e0fa38ccaec9a0ea34d8816c6cdbaaaedc8d33 Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Sun, 30 Oct 2005 04:16:19 +0000 Subject: [PATCH] Re-arrange. --- src/main/interlink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/interlink.c b/src/main/interlink.c index f7a4b6206..de9be5580 100644 --- a/src/main/interlink.c +++ b/src/main/interlink.c @@ -392,7 +392,8 @@ bind_to_af_unix(void) if (errno != EADDRINUSE) report_af_unix_error("bind()", errno); - if (++attempts > MAX_BIND_TRIES) + ++attempts; + if (attempts > MAX_BIND_TRIES) goto free_and_error; elinks_usleep(BIND_TRIES_DELAY * attempts);