mirror of
https://github.com/libssh2/libssh2.git
synced 2026-01-06 14:21:57 +03:00
sftp_packetlist_flush: only make it zombie if it was sent
The list of outgoing packets may also contain packets that never were sent off and we better not make them zombies too.
This commit is contained in:
@@ -430,8 +430,9 @@ static void sftp_packetlist_flush(LIBSSH2_SFTP_HANDLE *handle)
|
||||
int rc;
|
||||
struct sftp_pipeline_chunk *next = _libssh2_list_next(&chunk->node);
|
||||
|
||||
/* mark this request as a zombie */
|
||||
add_zombie_request(sftp, chunk->request_id);
|
||||
/* mark this request as a zombie if it ever sent anything */
|
||||
if(chunk->sent)
|
||||
add_zombie_request(sftp, chunk->request_id);
|
||||
|
||||
rc = sftp_packet_ask(sftp, SSH_FXP_STATUS,
|
||||
chunk->request_id, &data, &data_len);
|
||||
|
||||
Reference in New Issue
Block a user