[Pkg-privacy-commits] [torsocks] 05/38: Return EIO, not whatever 1 is, on EOF in recv_data.
Intrigeri
intrigeri at moszumanska.debian.org
Thu Jun 23 15:18:22 UTC 2016
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to branch experimental/master
in repository torsocks.
commit 6907dcdb8324642c39a56b961d6062cb6b354130
Author: Taylor R Campbell <campbell+torsocks at mumble.net>
Date: Fri Jun 19 05:12:16 2015 +0000
Return EIO, not whatever 1 is, on EOF in recv_data.
---
src/common/socks5.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/socks5.c b/src/common/socks5.c
index f56d69c..6d58f4d 100644
--- a/src/common/socks5.c
+++ b/src/common/socks5.c
@@ -60,7 +60,7 @@ static ssize_t recv_data_impl(int fd, void *buf, size_t len)
continue;
} else if (read_len == 0) {
/* Orderly shutdown from Tor daemon. Stop. */
- ret = -1;
+ ret = -EIO;
goto error;
} else {
PERROR("recv socks5 data");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torsocks.git
More information about the Pkg-privacy-commits
mailing list