commit 6907dcdb8324642c39a56b961d6062cb6b354130
Author: Taylor R Campbell <[email protected]>
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");



_______________________________________________
tor-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to