mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-24 16:52:24 +00:00
HTTP proxy: fix nonsense HTTP version check.
Substitution of && for || would have caused us to accept HTTP/1.0 when we meant to reject it. Thanks Coverity!
This commit is contained in:
parent
6d77541080
commit
d78d14f917
@ -479,7 +479,7 @@ static void proxy_http_process_queue(ProxyNegotiator *pn)
|
||||
crStopV;
|
||||
}
|
||||
|
||||
if (maj_ver < 1 && (maj_ver == 1 && min_ver < 1)) {
|
||||
if (maj_ver < 1 || (maj_ver == 1 && min_ver < 1)) {
|
||||
/* Before HTTP/1.1, connections close by default */
|
||||
s->connection_close = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user