summaryrefslogtreecommitdiff
path: root/src/trunnel/socks5.trunnel
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2018-09-12 11:18:43 +0300
committerNick Mathewson <nickm@torproject.org>2018-12-01 14:31:17 -0500
commitd49baa77b5586ecb473a822deb60dbe70c6769c8 (patch)
tree717e20cdcb26dd1db4602a80ca9ba9b9bc03f571 /src/trunnel/socks5.trunnel
parent83af6d6149bb589be01a14b1d800614c1beb9f18 (diff)
downloadtor-d49baa77b5586ecb473a822deb60dbe70c6769c8.tar.gz
tor-d49baa77b5586ecb473a822deb60dbe70c6769c8.zip
Allow socks4_server_reply version to be 0 (for tor-resolve)
Diffstat (limited to 'src/trunnel/socks5.trunnel')
-rw-r--r--src/trunnel/socks5.trunnel2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trunnel/socks5.trunnel b/src/trunnel/socks5.trunnel
index b86ec03b9d..17fa2ed996 100644
--- a/src/trunnel/socks5.trunnel
+++ b/src/trunnel/socks5.trunnel
@@ -86,7 +86,7 @@ struct socks4_client_request {
}
struct socks4_server_reply {
- u8 version IN [4];
+ u8 version IN [0,4];
u8 status;
u16 port;
u32 addr;