correct error handling.  previous code returned bogus hostent.
correct error handling.  previous code returned bogus hostent.

MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame