MFC r271187:
Avoid ctld(8) crash on getaddrinfo(3) failure.
Approved by: re (gjb) Sponsored by: The FreeBSD Foundation