Hello!
There is a code in sftp_get_client_message
case SSH_FXP_FSTAT:
rc = ssh_buffer_unpack(payload,
"Sd",
&msg->handle,
&msg->flags);
but according the documentation SSH_FXP_FSTAT has the following format:
uint32 id
string handle
so it seems that the correct code should be :
case SSH_FXP_FSTAT:
rc = ssh_buffer_unpack(payload,
"S",
&msg->handle);
