1
1

Fixed Could not write as much data as expected msg

Bug caused by verifying the size of the buffer in the wrong place
Этот коммит содержится в:
Aris Adamantiadis 2009-06-30 22:17:35 +02:00
родитель 42470857e2
Коммит 2c99566697

Просмотреть файл

@ -1705,8 +1705,8 @@ ssize_t sftp_write(SFTP_FILE *file, const void *buf, size_t count) {
return -1;
}
string_free(datastring);
packetlen=buffer_get_len(buffer);
len = sftp_packet_write(file->sftp, SSH_FXP_WRITE, buffer);
packetlen=buffer_get_len(buffer);
buffer_free(buffer);
if (len < 0) {
return -1;