mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-02-03 21:52:24 +00:00
Fix write to freed memory in HTTP proxying. Things aren't entirely happy yet,
though. [originally from svn r2285]
This commit is contained in:
parent
f2bfdefe45
commit
602834d887
3
proxy.c
3
proxy.c
@ -481,8 +481,7 @@ int proxy_http_negotiate (Proxy_Socket p, int change)
|
|||||||
sk_write(p->sub_socket, buf2, strlen(buf2));
|
sk_write(p->sub_socket, buf2, strlen(buf2));
|
||||||
}
|
}
|
||||||
|
|
||||||
sprintf(buf, "\r\n");
|
sk_write(p->sub_socket, "\r\n", strlen(buf));
|
||||||
sk_write(p->sub_socket, buf, strlen(buf));
|
|
||||||
|
|
||||||
p->state = 1;
|
p->state = 1;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user