1
0
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:
Simon Tatham 2022-01-29 18:19:58 +00:00
parent 6d77541080
commit d78d14f917

View File

@ -479,7 +479,7 @@ static void proxy_http_process_queue(ProxyNegotiator *pn)
crStopV; 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 */ /* Before HTTP/1.1, connections close by default */
s->connection_close = true; s->connection_close = true;
} }