summaryrefslogtreecommitdiffstats
path: root/0002-sftp-statvfs-Along-error-path-reset-the-correct-stat.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-12-20 07:14:27 +0100
committerRemi Collet <fedora@famillecollet.com>2014-12-20 07:14:27 +0100
commitb19d09aa2aea5acd142de597e1fa77cb4462254f (patch)
treec8cd020fc7c529c73a564d38c6283a05dc7ef338 /0002-sftp-statvfs-Along-error-path-reset-the-correct-stat.patch
parent6d60df25b515671f7e99c1b39dd8422ddc366d5e (diff)
libssh2: 1.4.3 for EL-5 (sync with EL-7)
Diffstat (limited to '0002-sftp-statvfs-Along-error-path-reset-the-correct-stat.patch')
-rw-r--r--0002-sftp-statvfs-Along-error-path-reset-the-correct-stat.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/0002-sftp-statvfs-Along-error-path-reset-the-correct-stat.patch b/0002-sftp-statvfs-Along-error-path-reset-the-correct-stat.patch
new file mode 100644
index 0000000..83ca15e
--- /dev/null
+++ b/0002-sftp-statvfs-Along-error-path-reset-the-correct-stat.patch
@@ -0,0 +1,26 @@
+From a12f3ffab579b514eeb7fdfaca0ade271961cdb4 Mon Sep 17 00:00:00 2001
+From: "Richard W.M. Jones" <rjones@redhat.com>
+Date: Mon, 8 Apr 2013 17:30:10 +0100
+Subject: [PATCH 2/3] sftp: statvfs: Along error path, reset the correct
+ 'state' variable.
+
+---
+ src/sftp.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/sftp.c b/src/sftp.c
+index 3760025..65fa77a 100644
+--- a/src/sftp.c
++++ b/src/sftp.c
+@@ -2752,7 +2752,7 @@ static int sftp_statvfs(LIBSSH2_SFTP *sftp, const char *path,
+ "Error waiting for FXP EXTENDED REPLY");
+ } else if (data_len < 93) {
+ LIBSSH2_FREE(session, data);
+- sftp->fstatvfs_state = libssh2_NB_state_idle;
++ sftp->statvfs_state = libssh2_NB_state_idle;
+ return _libssh2_error(session, LIBSSH2_ERROR_SFTP_PROTOCOL,
+ "SFTP Protocol Error: short response");
+ }
+--
+1.8.1.4
+