X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=proxy.c;h=bb89a176ae80f3b523fea6ea72b910e2632c30eb;hb=3e22c99c9a3c28e042f2dc3a50fadf95e7c277e7;hp=3c81884ded95d97aca4a0173c76816642df05116;hpb=58870f60e473b787feff96c069df344e1745facc;p=PuTTY.git 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;