xfree(p);
if (fwd->listen_port == 0 && fwd->connect_port == 0)
if (fwd->listen_port == 0 || fwd->connect_port == 0)
goto fail_free;
if (fwd->connect_host != NULL &&