| 247 g_free(phb); |
247 g_free(phb); |
| 248 return; |
248 return; |
| 249 } |
249 } |
| 250 fcntl(source, F_SETFL, 0); |
250 fcntl(source, F_SETFL, 0); |
| 251 |
251 |
| 252 g_snprintf(cmd, sizeof(cmd), "CONNECT %s:%d HTTP/1.1\r\n", phb->host, phb->port); |
252 g_snprintf(cmd, sizeof(cmd), "CONNECT %s:%d HTTP/1.1\r\nHost = %s:%d\r\n", phb->host, phb->port, phb->host, phb->port); |
| 253 if (send(source, cmd, strlen(cmd), 0) < 0) { |
253 if (send(source, cmd, strlen(cmd), 0) < 0) { |
| 254 close(source); |
254 close(source); |
| 255 phb->func(phb->data, -1, GAIM_INPUT_READ); |
255 phb->func(phb->data, -1, GAIM_INPUT_READ); |
| 256 g_free(phb->host); |
256 g_free(phb->host); |
| 257 g_free(phb); |
257 g_free(phb); |