summaryrefslogtreecommitdiff
path: root/sftp-common.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-06-23 21:27:18 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-06-23 21:27:18 +0000
commitb1f483f472da5fd2dbcb009d9988088f43c21579 (patch)
tree2d3f0c9906f6bb38e2d8f1e2a8f673191fdd3769 /sftp-common.c
parent5c3855210ef20be5931d4b58f641d71bc3b203e8 (diff)
downloadopenssh-git-b1f483f472da5fd2dbcb009d9988088f43c21579.tar.gz
- deraadt@cvs.openbsd.org 2002/06/23 09:30:14
[sftp-client.c sftp-client.h sftp-common.c sftp-int.c sftp-server.c sftp.c] bunch of u_int vs int stuff
Diffstat (limited to 'sftp-common.c')
-rw-r--r--sftp-common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sftp-common.c b/sftp-common.c
index 4fb44965..6bed0ab8 100644
--- a/sftp-common.c
+++ b/sftp-common.c
@@ -24,7 +24,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sftp-common.c,v 1.5 2001/12/02 02:08:32 deraadt Exp $");
+RCSID("$OpenBSD: sftp-common.c,v 1.6 2002/06/23 09:30:14 deraadt Exp $");
#include "buffer.h"
#include "bufaux.h"
@@ -70,6 +70,7 @@ Attrib *
decode_attrib(Buffer *b)
{
static Attrib a;
+
attrib_clear(&a);
a.flags = buffer_get_int(b);
if (a.flags & SSH2_FILEXFER_ATTR_SIZE)
@@ -88,6 +89,7 @@ decode_attrib(Buffer *b)
if (a.flags & SSH2_FILEXFER_ATTR_EXTENDED) {
char *type, *data;
int i, count;
+
count = buffer_get_int(b);
for (i = 0; i < count; i++) {
type = buffer_get_string(b, NULL);