Avoid ctld(8) crash on getaddrinfo(3) failure.

MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation