Skip to content

Commit

Permalink
test 1
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz committed Dec 12, 2023
1 parent ff04f3a commit cee2c34
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions net_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ static char *dns_resolve_filter(const char *host, int32_t family, uint8_t max_ad
// Copy address name into return string
err = getnameinfo(address->ai_addr, (socklen_t)address->ai_addrlen, ai_string + ai_string_len,
(uint32_t)(max_ai_string - ai_string_len), NULL, 0, NI_NUMERICHOST);
if (err != 0)
continue;
if (err != 0) {
printf("getnameinfo fail\n");

Check warning on line 82 in net_util.c

View check run for this annotation

Codecov / codecov/patch

net_util.c#L82

Added line #L82 was not covered by tests
goto dns_resolve_error;
}

max_addrs--;

Expand Down

0 comments on commit cee2c34

Please sign in to comment.