socks5_connect(): Properly deal with socks replies that contain IPv6 addresses
authorFabian Keil <fk@fabiankeil.de>
Tue, 25 Oct 2016 10:43:00 +0000 (10:43 +0000)
committerFabian Keil <fk@fabiankeil.de>
Tue, 25 Oct 2016 10:43:00 +0000 (10:43 +0000)
commit55a90b73e52e8ecd2f82fe34c11999252b64d02e
tree43604b736021854b063373be84886d0cb72e70d4
parentbd51cd28a9cc5242ce26bb83398f9d01c310c8f5
socks5_connect(): Properly deal with socks replies that contain IPv6 addresses

Previously parts of the reply were left unread and
later on treated as invalid HTTP response data.

Fixes #904 reported by Danny Goossen who also provided
the initial version of this patch.
gateway.c