|
Lines 932-938
channel_pre_x11_open(Channel *c, fd_set
Link Here
|
| 932 |
} else if (ret == -1) { |
932 |
} else if (ret == -1) { |
| 933 |
logit("X11 connection rejected because of wrong authentication."); |
933 |
logit("X11 connection rejected because of wrong authentication."); |
| 934 |
debug2("X11 rejected %d i%d/o%d", c->self, c->istate, c->ostate); |
934 |
debug2("X11 rejected %d i%d/o%d", c->self, c->istate, c->ostate); |
| 935 |
chan_read_failed(c); |
935 |
chan_read_failed(c, 0); |
| 936 |
buffer_clear(&c->input); |
936 |
buffer_clear(&c->input); |
| 937 |
chan_ibuf_empty(c); |
937 |
chan_ibuf_empty(c); |
| 938 |
buffer_clear(&c->output); |
938 |
buffer_clear(&c->output); |
|
Lines 1472-1485
channel_handle_rfd(Channel *c, fd_set *r
Link Here
|
| 1472 |
c->type = SSH_CHANNEL_INPUT_DRAINING; |
1472 |
c->type = SSH_CHANNEL_INPUT_DRAINING; |
| 1473 |
debug2("channel %d: input draining.", c->self); |
1473 |
debug2("channel %d: input draining.", c->self); |
| 1474 |
} else { |
1474 |
} else { |
| 1475 |
chan_read_failed(c); |
1475 |
chan_read_failed(c, (errno == EAGAIN && |
|
|
1476 |
!(c->isatty && c->detach_close))); |
| 1476 |
} |
1477 |
} |
| 1477 |
return -1; |
1478 |
return -1; |
| 1478 |
} |
1479 |
} |
| 1479 |
if (c->input_filter != NULL) { |
1480 |
if (c->input_filter != NULL) { |
| 1480 |
if (c->input_filter(c, buf, len) == -1) { |
1481 |
if (c->input_filter(c, buf, len) == -1) { |
| 1481 |
debug2("channel %d: filter stops", c->self); |
1482 |
debug2("channel %d: filter stops", c->self); |
| 1482 |
chan_read_failed(c); |
1483 |
chan_read_failed(c, 0); |
| 1483 |
} |
1484 |
} |
| 1484 |
} else if (c->datagram) { |
1485 |
} else if (c->datagram) { |
| 1485 |
buffer_put_string(&c->input, buf, len); |
1486 |
buffer_put_string(&c->input, buf, len); |
|
Lines 1643-1649
channel_handle_ctl(Channel *c, fd_set *r
Link Here
|
| 1643 |
chan_mark_dead(c); |
1644 |
chan_mark_dead(c); |
| 1644 |
return -1; |
1645 |
return -1; |
| 1645 |
} else { |
1646 |
} else { |
| 1646 |
chan_read_failed(c); |
1647 |
chan_read_failed(c, 0); |
| 1647 |
chan_write_failed(c); |
1648 |
chan_write_failed(c); |
| 1648 |
} |
1649 |
} |
| 1649 |
return -1; |
1650 |
return -1; |