From d7d5aea06887ce8bd8323f9b6b31d766afada0f9 Mon Sep 17 00:00:00 2001 From: Antonio Mignolli Date: Tue, 1 Aug 2023 21:03:03 +0200 Subject: [PATCH] Only check retries, no matter the error code --- src/config.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/config.c b/src/config.c index 81ccb479..93abda92 100644 --- a/src/config.c +++ b/src/config.c @@ -252,11 +252,7 @@ static inline bool parse_endpoint(struct sockaddr *endpoint, const char *value) * * So this is what we do, except FreeBSD removed EAI_NODATA some time ago, so that's conditional. */ - if (ret == EAI_NONAME || ret == EAI_FAIL || - #ifdef EAI_NODATA - ret == EAI_NODATA || - #endif - (retries >= 0 && !retries--)) { + if (retries >= 0 && !retries--) { free(mutable); fprintf(stderr, "%s: `%s'\n", ret == EAI_SYSTEM ? strerror(errno) : gai_strerror(ret), value); return false;