fe8b55f
From a12f3ffab579b514eeb7fdfaca0ade271961cdb4 Mon Sep 17 00:00:00 2001
fe8b55f
From: "Richard W.M. Jones" <rjones@redhat.com>
fe8b55f
Date: Mon, 8 Apr 2013 17:30:10 +0100
fe8b55f
Subject: [PATCH 2/3] sftp: statvfs: Along error path, reset the correct
fe8b55f
 'state' variable.
fe8b55f
fe8b55f
---
fe8b55f
 src/sftp.c | 2 +-
fe8b55f
 1 file changed, 1 insertion(+), 1 deletion(-)
fe8b55f
fe8b55f
diff --git a/src/sftp.c b/src/sftp.c
fe8b55f
index 3760025..65fa77a 100644
fe8b55f
--- a/src/sftp.c
fe8b55f
+++ b/src/sftp.c
fe8b55f
@@ -2752,7 +2752,7 @@ static int sftp_statvfs(LIBSSH2_SFTP *sftp, const char *path,
fe8b55f
                               "Error waiting for FXP EXTENDED REPLY");
fe8b55f
     } else if (data_len < 93) {
fe8b55f
         LIBSSH2_FREE(session, data);
fe8b55f
-        sftp->fstatvfs_state = libssh2_NB_state_idle;
fe8b55f
+        sftp->statvfs_state = libssh2_NB_state_idle;
fe8b55f
         return _libssh2_error(session, LIBSSH2_ERROR_SFTP_PROTOCOL,
fe8b55f
                               "SFTP Protocol Error: short response");
fe8b55f
     }
fe8b55f
-- 
fe8b55f
1.8.1.4
fe8b55f