mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
sftp: Use uint32_t for sftp extension count
Fixes T188
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
(cherry picked from commit c29840060b)
This commit is contained in:
@@ -58,7 +58,7 @@
|
|||||||
#define SFTP_BUFFER_SIZE_MAX 16384
|
#define SFTP_BUFFER_SIZE_MAX 16384
|
||||||
|
|
||||||
struct sftp_ext_struct {
|
struct sftp_ext_struct {
|
||||||
unsigned int count;
|
uint32_t count;
|
||||||
char **name;
|
char **name;
|
||||||
char **data;
|
char **data;
|
||||||
};
|
};
|
||||||
@@ -685,7 +685,7 @@ int sftp_init(sftp_session sftp) {
|
|||||||
version);
|
version);
|
||||||
rc = ssh_buffer_unpack(packet->payload, "s", &ext_name);
|
rc = ssh_buffer_unpack(packet->payload, "s", &ext_name);
|
||||||
while (rc == SSH_OK) {
|
while (rc == SSH_OK) {
|
||||||
int count = sftp->ext->count;
|
uint32_t count = sftp->ext->count;
|
||||||
char **tmp;
|
char **tmp;
|
||||||
|
|
||||||
rc = ssh_buffer_unpack(packet->payload, "s", &ext_data);
|
rc = ssh_buffer_unpack(packet->payload, "s", &ext_data);
|
||||||
|
|||||||
Reference in New Issue
Block a user