diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2002-04-01 22:02:17 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2002-04-01 22:02:17 +0000 |
commit | ef721c2f1a31ffca548e2758cee0ac0e2c6cc664 (patch) | |
tree | 150e05fa55fa638f74f5feae3f7e297280bef59f /usr.bin/ssh | |
parent | e60d56688ca98a7c782d8fb461b52faa5005447f (diff) |
20480 is an upper limit for older server
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/sftp-client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sftp-client.c b/usr.bin/ssh/sftp-client.c index 5e4f48b76c4..310ac6e9603 100644 --- a/usr.bin/ssh/sftp-client.c +++ b/usr.bin/ssh/sftp-client.c @@ -28,7 +28,7 @@ /* XXX: copy between two remote sites */ #include "includes.h" -RCSID("$OpenBSD: sftp-client.c,v 1.28 2002/03/19 10:49:35 markus Exp $"); +RCSID("$OpenBSD: sftp-client.c,v 1.29 2002/04/01 22:02:16 markus Exp $"); #include <sys/queue.h> @@ -270,7 +270,7 @@ do_init(int fd_in, int fd_out, u_int transfer_buflen, u_int num_requests) /* Some filexfer v.0 servers don't support large packets */ if (version == 0) - ret->transfer_buflen = MAX(ret->transfer_buflen, 20480); + ret->transfer_buflen = MIN(ret->transfer_buflen, 20480); return(ret); } |