Lines Matching refs:sc
213 Channel *sc, *c = channel_by_id(cid);
219 if ((sc = channel_by_id(c->remote_id)) == NULL)
223 sc->ctl_chan = -1;
224 if (sc->type != SSH_CHANNEL_OPEN &&
225 sc->type != SSH_CHANNEL_OPENING) {
226 debug2("%s: channel %d: not open", __func__, sc->self);
227 chan_mark_dead(sc);
229 if (sc->istate == CHAN_INPUT_OPEN)
230 chan_read_failed(sc);
231 if (sc->ostate == CHAN_OUTPUT_OPEN)
232 chan_write_failed(sc);