mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 09:27:59 +00:00
When a proxy negotiation function is called with PROXY_CHANGE_NEW, it
should not call plug functions, because it's being called from within new_connection(), and the state on which the plug functions depend will not have been set up until new_connection() returns success. Instead, we set the error string in the Proxy_Socket, which will cause the same error message to be returned as a failure of new_connection(). [originally from svn r9689]
This commit is contained in:
parent
58870f60e4
commit
7c8841d881
3
proxy.c
3
proxy.c
@ -750,8 +750,7 @@ int proxy_socks4_negotiate (Proxy_Socket p, int change)
|
||||
|
||||
type = sk_addrtype(p->remote_addr);
|
||||
if (type == ADDRTYPE_IPV6) {
|
||||
plug_closing(p->plug, "Proxy error: SOCKS version 4 does"
|
||||
" not support IPv6", PROXY_ERROR_GENERAL, 0);
|
||||
p->error = "Proxy error: SOCKS version 4 does not support IPv6";
|
||||
return 1;
|
||||
} else if (type == ADDRTYPE_IPV4) {
|
||||
namelen = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user