version 1.303, 2017/09/12 06:32:07 |
version 1.304, 2017/09/12 06:35:32 |
|
|
} else if (c != NULL) { |
} else if (c != NULL) { |
debug("confirm %s", ctype); |
debug("confirm %s", ctype); |
c->remote_id = rchan; |
c->remote_id = rchan; |
|
c->have_remote_id = 1; |
c->remote_window = rwindow; |
c->remote_window = rwindow; |
c->remote_maxpacket = rmaxpack; |
c->remote_maxpacket = rmaxpack; |
if (c->type != SSH_CHANNEL_CONNECTING) { |
if (c->type != SSH_CHANNEL_CONNECTING) { |
|
|
packet_check_eom(); |
packet_check_eom(); |
} |
} |
if (reply && c != NULL && !(c->flags & CHAN_CLOSE_SENT)) { |
if (reply && c != NULL && !(c->flags & CHAN_CLOSE_SENT)) { |
|
if (!c->have_remote_id) |
|
fatal("%s: channel %d: no remote_id", |
|
__func__, c->self); |
packet_start(success ? |
packet_start(success ? |
SSH2_MSG_CHANNEL_SUCCESS : SSH2_MSG_CHANNEL_FAILURE); |
SSH2_MSG_CHANNEL_SUCCESS : SSH2_MSG_CHANNEL_FAILURE); |
packet_put_int(c->remote_id); |
packet_put_int(c->remote_id); |