net: fix segfault with receiver, tcp, and no hostname set