Fix the IPv6 case in addr_resolve
- Make sure sin is not NULL before comparing it against INADDR_ANY
- Compare sin6->sin6_addr vs in6addr_any for the IPV6 case
This is a small-scale change that will eventually be refactored out in to
separate functions by upstream (Linux).
Reported by: Miles Ohlrich <miles.ohlrich@isilon.com>
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division