summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sftp-server.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2011-06-17 21:46:16 +0000
committerdjm <djm@openbsd.org>2011-06-17 21:46:16 +0000
commitd8d9f8c5008631715e6bbfebac99d838c383bc1c (patch)
treee37b2eb612faa953f694c390dcfd821ba7b1a135 /usr.bin/ssh/sftp-server.c
parentmake the pre-auth privsep slave log via a socketpair shared with the (diff)
downloadwireguard-openbsd-d8d9f8c5008631715e6bbfebac99d838c383bc1c.tar.xz
wireguard-openbsd-d8d9f8c5008631715e6bbfebac99d838c383bc1c.zip
the protocol version should be unsigned; bz#1913 reported by mb AT
smartftp.com
Diffstat (limited to 'usr.bin/ssh/sftp-server.c')
-rw-r--r--usr.bin/ssh/sftp-server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/sftp-server.c b/usr.bin/ssh/sftp-server.c
index b16c9036307..bff71200c5e 100644
--- a/usr.bin/ssh/sftp-server.c
+++ b/usr.bin/ssh/sftp-server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-server.c,v 1.93 2010/12/04 00:18:01 djm Exp $ */
+/* $OpenBSD: sftp-server.c,v 1.94 2011/06/17 21:46:16 djm Exp $ */
/*
* Copyright (c) 2000-2004 Markus Friedl. All rights reserved.
*
@@ -59,7 +59,7 @@ Buffer iqueue;
Buffer oqueue;
/* Version of client */
-int version;
+u_int version;
/* Disable writes */
int readonly;
@@ -513,7 +513,7 @@ process_init(void)
Buffer msg;
version = get_int();
- verbose("received client version %d", version);
+ verbose("received client version %u", version);
buffer_init(&msg);
buffer_put_char(&msg, SSH2_FXP_VERSION);
buffer_put_int(&msg, SSH2_FILEXFER_VERSION);