mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Remove ProxySocket's sent_bufsize field.
I just spotted that it was set once and never read.
This commit is contained in:
parent
0aa8cf7b0d
commit
a742abae27
1
proxy.c
1
proxy.c
@ -238,7 +238,6 @@ static void plug_proxy_sent (Plug *p, int bufsize)
|
|||||||
ProxySocket *ps = container_of(p, ProxySocket, plugimpl);
|
ProxySocket *ps = container_of(p, ProxySocket, plugimpl);
|
||||||
|
|
||||||
if (ps->state != PROXY_STATE_ACTIVE) {
|
if (ps->state != PROXY_STATE_ACTIVE) {
|
||||||
ps->sent_bufsize = bufsize;
|
|
||||||
ps->negotiate(ps, PROXY_CHANGE_SENT);
|
ps->negotiate(ps, PROXY_CHANGE_SENT);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
3
proxy.h
3
proxy.h
@ -71,9 +71,6 @@ struct ProxySocket {
|
|||||||
const char *receive_data;
|
const char *receive_data;
|
||||||
int receive_len;
|
int receive_len;
|
||||||
|
|
||||||
/* sent */
|
|
||||||
int sent_bufsize;
|
|
||||||
|
|
||||||
/* accepting */
|
/* accepting */
|
||||||
accept_fn_t accepting_constructor;
|
accept_fn_t accepting_constructor;
|
||||||
accept_ctx_t accepting_ctx;
|
accept_ctx_t accepting_ctx;
|
||||||
|
Loading…
Reference in New Issue
Block a user