1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

Presence of unexpected characters in the proxy exclude list causes a

tight loop in proxy_for_destination(). Fixed.

[originally from svn r2415]
This commit is contained in:
Simon Tatham 2003-01-02 10:07:17 +00:00
parent 0416b77c7f
commit 327b9b7f1a

View File

@ -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 */