Skip to content

Commit d7d5aea

Browse files
committed
Only check retries, no matter the error code
1 parent 729242a commit d7d5aea

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/config.c

+1-5
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,7 @@ static inline bool parse_endpoint(struct sockaddr *endpoint, const char *value)
252252
*
253253
* So this is what we do, except FreeBSD removed EAI_NODATA some time ago, so that's conditional.
254254
*/
255-
if (ret == EAI_NONAME || ret == EAI_FAIL ||
256-
#ifdef EAI_NODATA
257-
ret == EAI_NODATA ||
258-
#endif
259-
(retries >= 0 && !retries--)) {
255+
if (retries >= 0 && !retries--) {
260256
free(mutable);
261257
fprintf(stderr, "%s: `%s'\n", ret == EAI_SYSTEM ? strerror(errno) : gai_strerror(ret), value);
262258
return false;

0 commit comments

Comments
 (0)