Fixed access to uninitialized data after call to resolve_host
Fixes core dump in cases when non mandatory hostname was not given