fixed segfault when getnameinfo fails, should not fail, but did on Solaris 9