segfaults fixed on unknown hostaddr