diff --git a/gio/gsocks4aproxy.c b/gio/gsocks4aproxy.c index 3dad118eb..b3146d08f 100644 --- a/gio/gsocks4aproxy.c +++ b/gio/gsocks4aproxy.c @@ -79,9 +79,9 @@ g_socks4a_proxy_init (GSocks4aProxy *proxy) * +----+----+----+----+----+----+----+----+----+----+....+----+------+....+------+ * | VN | CD | DSTPORT | DSTIP | USERID |NULL| HOST | | NULL | * +----+----+----+----+----+----+----+----+----+----+....+----+------+....+------+ - * 1 1 2 4 variable 1 variable + * 1 1 2 4 variable 1 variable 1 */ -#define SOCKS4_CONN_MSG_LEN (9 + SOCKS4_MAX_LEN * 2) +#define SOCKS4_CONN_MSG_LEN (10 + SOCKS4_MAX_LEN * 2) static gint set_connect_msg (guint8 *msg, const gchar *hostname,