In socks5_connect(), require a complete socks response from the server
authorFabian Keil <fk@fabiankeil.de>
Sun, 23 Oct 2011 11:20:51 +0000 (11:20 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sun, 23 Oct 2011 11:20:51 +0000 (11:20 +0000)
commit4e07c90604ddcd82e971cc96a1d66dea934b18c7
tree5638079daf8d3998f00d62f380764f39a7cd0134
parent63fd0e0d662d4468396748643653848ba3fd4c7e
In socks5_connect(), require a complete socks response from the server

Previously we didn't care how much data the server response
contained as long as the first two bytes contained the expected
values.

While at it, shrink the buffer size so we can't read more
than a whole socks response. This is required to support
Tor's optimistic data extension.
gateway.c