c->halfopen = FALSE;
static void ssh1_msg_channel_open_confirmation(Ssh ssh, struct Packet *pktin){    unsigned int remoteid = ssh_pkt_getuint32(pktin);    unsigned int localid = ssh_pkt_getuint32(pktin);    struct ssh_channel *c;    c = find234(ssh->channels, &remoteid, ssh_channelfind);    if (c && c->type == CHAN_SOCKDATA_DORMANT) {	c->remoteid = localid;	c->type = CHAN_SOCKDATA;	c->v.v1.throttling = 0;	pfd_confirm(c->u.pfd.s);    }    if (c && c->closes) {	/*	 * We have a pending close on this channel,	 * which we decided on before the server acked	 * the channel open. So now we know the	 * remoteid, we can close it again.	 */	send_packet(ssh, SSH1_MSG_CHANNEL_CLOSE,		    PKT_INT, c->remoteid, PKT_END);    }}