X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/46f258147c57d2320fa05ecf108db22854bef13f..feae2dfc998c2e9433cb88da64cab0fdc7e5896c:/proxy.c diff --git a/proxy.c b/proxy.c index 3c81884d..bb89a176 100644 --- a/proxy.c +++ b/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;