c->halfopen = FALSE;
static void ssh2_msg_channel_open_confirmation(Ssh ssh, struct Packet *pktin){    unsigned i = ssh_pkt_getuint32(pktin);    struct ssh_channel *c;    struct Packet *pktout;    c = find234(ssh->channels, &i, ssh_channelfind);    if (!c)	return;			       /* nonexistent channel */    if (c->type != CHAN_SOCKDATA_DORMANT)	return;			       /* dunno why they're confirming this */    c->remoteid = ssh_pkt_getuint32(pktin);    c->type = CHAN_SOCKDATA;    c->v.v2.remwindow = ssh_pkt_getuint32(pktin);    c->v.v2.remmaxpkt = ssh_pkt_getuint32(pktin);    if (c->u.pfd.s)	pfd_confirm(c->u.pfd.s);    if (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.	 */	pktout = ssh2_pkt_init(SSH2_MSG_CHANNEL_CLOSE);	ssh2_pkt_adduint32(pktout, c->remoteid);	ssh2_pkt_send(ssh, pktout);    }}