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:
tatataeki
2022-08-31 21:46:22 +08:00
committed by Jakub Jelen
parent 48d14ee9a9
commit 69ad6985de
2 changed files with 223 additions and 223 deletions

View File

@@ -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 */