Removed errno from "could not resolve host" error