-Prevent a segfault while resolving the local IP address if the hostname resolution isn't configured properly in the OS (bug 1004). Thanks to Ant P. for the intial patch.

git-svn-id: http://odamex.net/svn/root/trunk@4114 b0bcef46-2027-0410-bd56-ab726e9a1d04