Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion util/bb_oscompat.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static int os_get_host_and_cname_by_name(char **name_ptr, struct in_addr *addr,
}

if (cname != NULL)
*cname = strdup(res->ai_canonname);
*cname = res->ai_canonname ? strdup(res->ai_canonname) : NULL;

freeaddrinfo(res);
return 0;
Expand Down