|
Lines 2040-2046
ssh_packet_write_wait(struct ssh *ssh)
Link Here
|
| 2040 |
NFDBITS), sizeof(fd_mask)); |
2040 |
NFDBITS), sizeof(fd_mask)); |
| 2041 |
if (setp == NULL) |
2041 |
if (setp == NULL) |
| 2042 |
return SSH_ERR_ALLOC_FAIL; |
2042 |
return SSH_ERR_ALLOC_FAIL; |
| 2043 |
ssh_packet_write_poll(ssh); |
2043 |
r = ssh_packet_write_poll(ssh); |
|
|
2044 |
if (r == SSH_ERR_SYSTEM_ERROR || r == SSH_ERR_CONN_CLOSED) |
| 2045 |
return r; |
| 2044 |
while (ssh_packet_have_data_to_write(ssh)) { |
2046 |
while (ssh_packet_have_data_to_write(ssh)) { |
| 2045 |
memset(setp, 0, howmany(state->connection_out + 1, |
2047 |
memset(setp, 0, howmany(state->connection_out + 1, |
| 2046 |
NFDBITS) * sizeof(fd_mask)); |
2048 |
NFDBITS) * sizeof(fd_mask)); |