mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09:00
sftpserver: Fix SSH_FXP_FSTAT arguments
Thanks to Игорь Коваленко <igor.a.kovalenko@gmail.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -194,9 +194,8 @@ sftp_client_message sftp_get_client_message(sftp_session sftp) {
|
|||||||
break;
|
break;
|
||||||
case SSH_FXP_FSTAT:
|
case SSH_FXP_FSTAT:
|
||||||
rc = ssh_buffer_unpack(payload,
|
rc = ssh_buffer_unpack(payload,
|
||||||
"Sd",
|
"S",
|
||||||
&msg->handle,
|
&msg->handle);
|
||||||
&msg->flags);
|
|
||||||
if (rc != SSH_OK) {
|
if (rc != SSH_OK) {
|
||||||
ssh_set_error_oom(session);
|
ssh_set_error_oom(session);
|
||||||
sftp_client_message_free(msg);
|
sftp_client_message_free(msg);
|
||||||
|
|||||||
Reference in New Issue
Block a user