version 1.215, 2015/09/21 04:31:00 |
version 1.216, 2015/10/21 11:33:03 |
|
|
NFDBITS), sizeof(fd_mask)); |
NFDBITS), sizeof(fd_mask)); |
if (setp == NULL) |
if (setp == NULL) |
return SSH_ERR_ALLOC_FAIL; |
return SSH_ERR_ALLOC_FAIL; |
if ((r = ssh_packet_write_poll(ssh)) != 0) |
if ((r = ssh_packet_write_poll(ssh)) != 0) { |
|
free(setp); |
return r; |
return r; |
|
} |
while (ssh_packet_have_data_to_write(ssh)) { |
while (ssh_packet_have_data_to_write(ssh)) { |
memset(setp, 0, howmany(state->connection_out + 1, |
memset(setp, 0, howmany(state->connection_out + 1, |
NFDBITS) * sizeof(fd_mask)); |
NFDBITS) * sizeof(fd_mask)); |