Fixed error handling for getaddinfo
Fix to force-push