Send back SOCKS5 errors for all of the address related failures.

Cases that now send errors:
 * Malformed IP address (SOCKS5_GENERAL_ERROR)
 * CONNECT/RESOLVE request with IP, when SafeSocks is set
   (SOCKS5_NOT_ALLOWED)
 * RESOLVE_PTR request with FQDN (SOCKS5_ADDRESS_TYPE_NOT_SUPPORTED)
 * Malformed FQDN (SOCKS5_GENERAL_ERROR)
 * Unknown address type (SOCKS5_ADDRESS_TYPE_NOT_SUPPORTED)

Fixes bug 13314.
This commit is contained in:
Yawning Angel
2014-10-01 14:16:59 +00:00
parent b448ec195d
commit c8132aab92
3 changed files with 86 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
o Bugfixes:
- Handle malformed SOCKS5 requests properly by responding with an
appropriate error message before closing a TCP connection to the
user. Fixes bug 13314.