mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +09:00
sftp: format modified
Signed-off-by: tatataeki <shengzeyu19_98@163.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
This commit is contained in:
@@ -444,7 +444,7 @@ int sftp_decode_channel_data_to_packet(sftp_session sftp, void *data) {
|
||||
if(packet->sftp == NULL)
|
||||
packet->sftp = sftp;
|
||||
|
||||
packet->type = *((uint8_t *)data + sizeof(int));
|
||||
packet->type = *((uint8_t *)data + sizeof(uint32_t));
|
||||
payload_len = PULL_BE_U32(data, 0);
|
||||
|
||||
/* We should check the legality of payload length */
|
||||
|
||||
Reference in New Issue
Block a user