Frankie Fong filed bug report #708708 which identified a problem with
ConnectionExists() when first doing a proxy connecto to a HTTPS site and then switching over to a HTTP connection to the same host. This fix corrects the problem.
This commit is contained in:
parent
82bc76b243
commit
4b3f800c03
@ -1272,6 +1272,11 @@ ConnectionExists(struct SessionHandle *data,
|
|||||||
if(!check)
|
if(!check)
|
||||||
/* NULL pointer means not filled-in entry */
|
/* NULL pointer means not filled-in entry */
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if((needle->protocol&PROT_SSL) != (check->protocol&PROT_SSL))
|
||||||
|
/* don't do mixed SSL and non-SSL connections */
|
||||||
|
continue;
|
||||||
|
|
||||||
if(!needle->bits.httpproxy || needle->protocol&PROT_SSL) {
|
if(!needle->bits.httpproxy || needle->protocol&PROT_SSL) {
|
||||||
/* The requested connection does not use a HTTP proxy or it
|
/* The requested connection does not use a HTTP proxy or it
|
||||||
uses SSL. */
|
uses SSL. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user