hostname: avoid segfault in hostname backend
hostname: avoid segfault in hostname backend

crossdistro/netresolve,crossdistro/netresolve,pavlix/netresolve,crossdistro/netresolve,pavlix/netresolve,pavlix/netresolve