mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-08 03:42:12 +03:00
sftpserver: Add missing return while processing write
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Sahana Prasad <sahana@redhat.com> Reviewed-by: Eshan Kelkar <eshankelkar@galorithm.com>
This commit is contained in:
committed by
Sahana Prasad
parent
325ea6dc40
commit
7d82bc377f
@@ -1026,8 +1026,10 @@ process_write(sftp_client_message client_msg)
|
||||
rv = lseek(fd, client_msg->offset, SEEK_SET);
|
||||
if (rv == -1) {
|
||||
sftp_reply_status(client_msg, SSH_FX_FAILURE, NULL);
|
||||
SSH_LOG(SSH_LOG_PROTOCOL, "error seeking file at offset: %" PRIu64,
|
||||
SSH_LOG(SSH_LOG_PROTOCOL,
|
||||
"error seeking file at offset: %" PRIu64,
|
||||
client_msg->offset);
|
||||
return SSH_ERROR;
|
||||
}
|
||||
written = ssh_writen(fd, msg_data, len);
|
||||
if (written != (ssize_t)len) {
|
||||
|
||||
Reference in New Issue
Block a user