From d674b1a09a872b5b4bfe249432ac7f359f920775 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 22 Oct 2010 11:00:20 +0200 Subject: [PATCH] _libssh2_transport_write: allow 256 extra bytes around the packet --- src/transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transport.c b/src/transport.c index f531027..6eaae3e 100644 --- a/src/transport.c +++ b/src/transport.c @@ -695,7 +695,7 @@ _libssh2_transport_write(LIBSSH2_SESSION * session, unsigned char *data, unsigned char *orgdata = data; size_t orgdata_len = data_len; - if(data_len >= MAX_SSH_PACKET_LEN) + if(data_len >= (MAX_SSH_PACKET_LEN-0x100)) /* too large packet, return error for this until we make this function split it up and send multiple SSH packets */ return LIBSSH2_ERROR_INVAL;