зеркало из https://github.com/github/putty.git
Remove ProxySocket's sent_bufsize field.
I just spotted that it was set once and never read.
This commit is contained in:
Родитель
0aa8cf7b0d
Коммит
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);
|
||||
|
||||
if (ps->state != PROXY_STATE_ACTIVE) {
|
||||
ps->sent_bufsize = bufsize;
|
||||
ps->negotiate(ps, PROXY_CHANGE_SENT);
|
||||
return;
|
||||
}
|
||||
|
|
3
proxy.h
3
proxy.h
|
@ -71,9 +71,6 @@ struct ProxySocket {
|
|||
const char *receive_data;
|
||||
int receive_len;
|
||||
|
||||
/* sent */
|
||||
int sent_bufsize;
|
||||
|
||||
/* accepting */
|
||||
accept_fn_t accepting_constructor;
|
||||
accept_ctx_t accepting_ctx;
|
||||
|
|
Загрузка…
Ссылка в новой задаче