Blame SOURCES/0002-sftp-statvfs-Along-error-path-reset-the-correct-stat.patch

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