Fixed access to uninitialized data after call to resolve_host
Fixes core dump in cases when non mandatory hostname was not given
Merge pull request #11 from flonatel/master

Fixes two problems with host handling