mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-03 22:13:11 +03:00
sftp_open: deal with short channel_write calls
This was an old TODO that just wasn't done before. If channel_write returns short, that is not an error.
This commit is contained in:
@@ -602,7 +602,8 @@ struct _LIBSSH2_SFTP
|
||||
/* State variables used in libssh2_sftp_open_ex() */
|
||||
libssh2_nonblocking_states open_state;
|
||||
unsigned char *open_packet;
|
||||
ssize_t open_packet_len;
|
||||
size_t open_packet_len;
|
||||
size_t open_packet_sent;
|
||||
uint32_t open_request_id;
|
||||
|
||||
/* State variables used in libssh2_sftp_read() */
|
||||
|
||||
Reference in New Issue
Block a user