comparison src/proxy.c @ 13752:c502ed5ae9f6

[gaim-migrate @ 16163] A patch in SF Bug #1461450 from gonufer. This should make SOCKS-5 proxies work again. It looked correct to me, but someone who really knows the proxy code might want to double-check. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 09 May 2006 01:35:43 +0000
parents 6bee2e80e42c
children 5ddde4ad1ca2
comparison
equal deleted inserted replaced
13751:7925c5d81ecf 13752:c502ed5ae9f6
1735 static void 1735 static void
1736 s5_sendconnect(gpointer data, gint source) 1736 s5_sendconnect(gpointer data, gint source)
1737 { 1737 {
1738 struct PHB *phb = data; 1738 struct PHB *phb = data;
1739 int hlen = strlen(phb->host); 1739 int hlen = strlen(phb->host);
1740 phb->write_buf_len = 5 + hlen + 1; 1740 phb->write_buf_len = 5 + hlen + 2;
1741 phb->write_buffer = g_malloc(phb->write_buf_len); 1741 phb->write_buffer = g_malloc(phb->write_buf_len);
1742 phb->written_len = 0; 1742 phb->written_len = 0;
1743 1743
1744 phb->write_buffer[0] = 0x05; 1744 phb->write_buffer[0] = 0x05;
1745 phb->write_buffer[1] = 0x01; /* CONNECT */ 1745 phb->write_buffer[1] = 0x01; /* CONNECT */