Skip to content

Commit

Permalink
Ensure early exit when resolution fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasko committed May 30, 2019
1 parent 7b1ec70 commit 5e76205
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ureq/target.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ resolve_name(struct target* tg,
(void)snprintf(estr, sizeof(estr), "unable to resolve name '%%s': %s", gai_strerror(reti));
log(lvl, false, estr, name);

if (cf->cf_err == true) {
return false;
}
return !cf->cf_err;
}

// Traverse the returned address information.
Expand Down

0 comments on commit 5e76205

Please sign in to comment.