aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-02-23 14:42:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-02-23 14:42:47 +0000
commit0e6a1a44203fab41348c045bc746854273956d4b (patch)
treeb90ef2a7656ecf161ce343835ae91d990dcaa73d /lib
parentb8bf708db92badd73261103c4c7d1e435b9d8f7e (diff)
Peter Su's SOCKS4 fix
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/url.c b/lib/url.c
index 60172b395..53a53e9a2 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1822,7 +1822,7 @@ ConnectionStore(struct SessionHandle *data,
*/
static int handleSock4Proxy(struct connectdata *conn)
{
- unsigned char socksreq[600]; /* room for large user/pw (255 max each) */
+ unsigned char socksreq[9]; /* room for SOCKS4 request */
int result;
CURLcode code;
curl_socket_t sock = conn->sock[FIRSTSOCKET];
@@ -1893,8 +1893,13 @@ static int handleSock4Proxy(struct connectdata *conn)
}
/*
- * Make connection
- */
+ * This is currently not supporting "Identification Protocol (RFC1413)".
+ */
+ socksreq[8] = 0; /* NUL ending the nonexistent userid */
+
+ /*
+ * Make connection
+ */
{
ssize_t actualread;
ssize_t written;