Skip to content

Commit

Permalink
Only check retries, no matter the error code
Browse files Browse the repository at this point in the history
  • Loading branch information
tonjo committed Aug 1, 2023
1 parent 729242a commit d7d5aea
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d7d5aea

Please sign in to comment.