HomeFreeBSD

bhyve: Fix getaddrinfo() error handling

Description

bhyve: Fix getaddrinfo() error handling

  • Use errx() since errno will not be set.
  • Print the message returned by gai_strerror().

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 927aa5fefd4c69e72d44189a04fadf80e42d0ad8)

Details

Provenance
markjAuthored on Feb 8 2022, 5:34 PM
jhbCommitted on Jan 26 2023, 7:21 PM
Parents
rG1cc76bb620af: bhyve: clean up trailing whitespaces
Branches
Unknown
Tags
Unknown