audit: Simplify name lookup code in log_utmp_host()
audit: Simplify name lookup code in log_utmp_host()

By using getaddrinfo(3) we can significantly reduce the amount of code
needed to resolve an IP address to a hostname.

This allows us to do it in an address family agnostic manner and removes
the need to cast stuff around to struct sockaddr, we can just pass the
relevant bits returned from getaddrinfo straight into getnameinfo.

Signed-off-by: Andrew Clayton <02e0a999c50b1f88df7a8f5a04e1b76b35ea6a88@digital-domain.net>

ac000/fcgi_app_core,ac000/fcgi_app_core