1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

Wrong length was causing spurious \0 to be sent during SSH negotiation with

HTTP proxy -- fixed. (Also added a "len -= eol" to HTTP header munching,
although it has no practical effect.) HTTP proxying now works again, hurrah.

[originally from svn r2292]
This commit is contained in:
Jacob Nevins 2002-12-08 15:32:40 +00:00
parent b3f2c9475e
commit 5d20178a12

View File

@ -481,7 +481,7 @@ int proxy_http_negotiate (Proxy_Socket p, int change)
sk_write(p->sub_socket, buf2, strlen(buf2));
}
sk_write(p->sub_socket, "\r\n", strlen(buf));
sk_write(p->sub_socket, "\r\n", 2);
p->state = 1;
return 0;
@ -594,6 +594,7 @@ int proxy_http_negotiate (Proxy_Socket p, int change)
{
bufchain_consume(&p->pending_input_data, eol);
datap += eol;
len -= eol;
eol = get_line_end(datap, len);
}