diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2011-12-20 14:55:45 +0100 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2011-12-20 14:55:45 +0100 |
commit | 2f6665d84ee5fa045901a999b719e9022a7d1a51 (patch) | |
tree | e68486a48b729163685412cd0bca97790482860a | |
parent | 2ce40698324756c09bc53f19b671fffddbc414f1 (diff) | |
download | sshfs-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |