From 03d068f00a28ee23497f1b6b1206b7857d48d06d Mon Sep 17 00:00:00 2001 From: Zhen-Huan HWANG <44398524+zhwang-amad@users.noreply.github.com> Date: Wed, 13 Feb 2019 00:18:26 +0100 Subject: [PATCH] SFTP: increase maximum packet size to 256K (#268) to match implementations like OpenSSH. --- src/sftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sftp.c b/src/sftp.c index 7ddcdc96..21bd8bff 100644 --- a/src/sftp.c +++ b/src/sftp.c @@ -91,7 +91,7 @@ /* This is the maximum packet length to accept, as larger than this indicate some kind of server problem. */ -#define LIBSSH2_SFTP_PACKET_MAXLEN 80000 +#define LIBSSH2_SFTP_PACKET_MAXLEN (256 * 1024) static int sftp_packet_ask(LIBSSH2_SFTP *sftp, unsigned char packet_type, uint32_t request_id, unsigned char **data,