aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2011-12-20 14:55:45 +0100
committerMiklos Szeredi <mszeredi@suse.cz>2011-12-20 14:55:45 +0100
commit2f6665d84ee5fa045901a999b719e9022a7d1a51 (patch)
treee68486a48b729163685412cd0bca97790482860a
parent2ce40698324756c09bc53f19b671fffddbc414f1 (diff)
downloadsshfs-2f6665d84ee5fa045901a999b719e9022a7d1a51.tar
sshfs-2f6665d84ee5fa045901a999b719e9022a7d1a51.tar.gz
sshfs-2f6665d84ee5fa045901a999b719e9022a7d1a51.tar.bz2
sshfs-2f6665d84ee5fa045901a999b719e9022a7d1a51.zip
Fix error handling in sshfs_read_end
Reported by Mike Kelly
-rw-r--r--sshfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshfs.c b/sshfs.c
index 323ab6c..22c1e2d 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -2384,8 +2384,8 @@ static void sshfs_read_end(struct request *req)
if (buf_get_uint32(&req->reply, &serr) != -1) {
if (serr == SSH_FX_EOF)
rreq->res = 0;
- } else {
- rreq->res = -sftp_error_to_errno(serr);
+ else
+ rreq->res = -sftp_error_to_errno(serr);
}
} else if (req->reply_type == SSH_FXP_DATA) {
uint32_t retsize;