X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/b7a189f38294c745ae4ea6efb55891c8196e275b..8095091bedbd70c8eadf54a0fd098fbf251fe25d:/proxy.c?ds=inline diff --git a/proxy.c b/proxy.c index d43ad7b4..30a16c5c 100644 --- a/proxy.c +++ b/proxy.c @@ -321,6 +321,11 @@ static int proxy_for_destination (SockAddr addr, char * hostname, int port) } s = e; + + /* Make sure we really have reached the next comma or end-of-string */ + while (exclude_list[s] && + !isspace(exclude_list[s]) && + exclude_list[s] != ',') s++; } /* no matches in the exclude list, so use the proxy */