summaryrefslogtreecommitdiff
path: root/sftp-server.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-01-02 23:40:50 +1100
committerDamien Miller <djm@mindrot.org>2006-01-02 23:40:50 +1100
commit5444618987402d50fb9c6c722919fe2d428d05bb (patch)
tree9ee85f748a02b98efcd1d6b81b98a845dc2eed29 /sftp-server.c
parenta210d522355b9dfacfc4691f483ee18896bfe4b8 (diff)
- djm@cvs.openbsd.org 2006/01/02 01:20:31
[sftp-client.c sftp-common.h sftp-server.c] use a common max. packet length, no binary change
Diffstat (limited to 'sftp-server.c')
-rw-r--r--sftp-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sftp-server.c b/sftp-server.c
index 4fa07e2f5..7060c44ad 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -14,7 +14,7 @@
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */ 15 */
16#include "includes.h" 16#include "includes.h"
17RCSID("$OpenBSD: sftp-server.c,v 1.49 2005/09/13 23:40:07 djm Exp $"); 17RCSID("$OpenBSD: sftp-server.c,v 1.50 2006/01/02 01:20:31 djm Exp $");
18 18
19#include "buffer.h" 19#include "buffer.h"
20#include "bufaux.h" 20#include "bufaux.h"
@@ -946,7 +946,7 @@ process(void)
946 return; /* Incomplete message. */ 946 return; /* Incomplete message. */
947 cp = buffer_ptr(&iqueue); 947 cp = buffer_ptr(&iqueue);
948 msg_len = GET_32BIT(cp); 948 msg_len = GET_32BIT(cp);
949 if (msg_len > 256 * 1024) { 949 if (msg_len > SFTP_MAX_MSG_LENGTH) {
950 error("bad message "); 950 error("bad message ");
951 exit(11); 951 exit(11);
952 } 952 }