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:
parent
0416b77c7f
commit
327b9b7f1a
5
proxy.c
5
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user