summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--sftp-server.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index d41208092..15320284c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,10 @@
13 [log.c log.h monitor.c monitor.h monitor_wrap.c monitor_wrap.h sshd.c] 13 [log.c log.h monitor.c monitor.h monitor_wrap.c monitor_wrap.h sshd.c]
14 make the pre-auth privsep slave log via a socketpair shared with the 14 make the pre-auth privsep slave log via a socketpair shared with the
15 monitor rather than /var/empty/dev/log; ok dtucker@ deraadt@ markus@ 15 monitor rather than /var/empty/dev/log; ok dtucker@ deraadt@ markus@
16 - djm@cvs.openbsd.org 2011/06/17 21:46:16
17 [sftp-server.c]
18 the protocol version should be unsigned; bz#1913 reported by mb AT
19 smartftp.com
16 20
1720110603 2120110603
18 - (dtucker) [README version.h contrib/caldera/openssh.spec 22 - (dtucker) [README version.h contrib/caldera/openssh.spec
diff --git a/sftp-server.c b/sftp-server.c
index b268d0883..9d01c7d79 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp-server.c,v 1.93 2010/12/04 00:18:01 djm Exp $ */ 1/* $OpenBSD: sftp-server.c,v 1.94 2011/06/17 21:46:16 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2000-2004 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000-2004 Markus Friedl. All rights reserved.
4 * 4 *
@@ -68,7 +68,7 @@ Buffer iqueue;
68Buffer oqueue; 68Buffer oqueue;
69 69
70/* Version of client */ 70/* Version of client */
71int version; 71u_int version;
72 72
73/* Disable writes */ 73/* Disable writes */
74int readonly; 74int readonly;
@@ -522,7 +522,7 @@ process_init(void)
522 Buffer msg; 522 Buffer msg;
523 523
524 version = get_int(); 524 version = get_int();
525 verbose("received client version %d", version); 525 verbose("received client version %u", version);
526 buffer_init(&msg); 526 buffer_init(&msg);
527 buffer_put_char(&msg, SSH2_FXP_VERSION); 527 buffer_put_char(&msg, SSH2_FXP_VERSION);
528 buffer_put_int(&msg, SSH2_FILEXFER_VERSION); 528 buffer_put_int(&msg, SSH2_FILEXFER_VERSION);