} else if (c->type == CHAN_SOCKDATA) {
} else if (c->type == CHAN_SOCKDATA || c->type == CHAN_SOCKDATA_DORMANT) {
void sshfwd_close(struct ssh_channel *c){    if (c && !c->closes) {	if (ssh_version == 1) {	    send_packet(SSH1_MSG_CHANNEL_CLOSE, PKT_INT, c->remoteid,			PKT_END);	} else {	    ssh2_pkt_init(SSH2_MSG_CHANNEL_CLOSE);	    ssh2_pkt_adduint32(c->remoteid);	    ssh2_pkt_send();	}	c->closes = 1;	if (c->type == CHAN_X11) {	    c->u.x11.s = NULL;	    logevent("Forwarded X11 connection terminated");	} else if (c->type == CHAN_SOCKDATA) {	    c->u.pfd.s = NULL;	    logevent("Forwarded port closed");	}    }}