← Commit list

72352daba0

Stefan Eissing
Stefan Eissing
2026-08-27
SUCCESS Duration: 391s

Subject

connection reuse: check SSL configs when doing a scheme upgrade

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/url.c+4 -0
@@ -723,6 +723,10 @@ static bool url_match_ssl_use(struct connectdata *conn,
if(!(m->needle->scheme->flags & PROTOPT_SSL_REUSE) ||
(get_protocol_family(conn->scheme) != m->needle->scheme->protocol))
return FALSE;
+ /* We may reuse this as an auto-TLS upgrade, but only if the SSL
+ * config parameters match. */
+ if(!Curl_ssl_conn_config_match(m->data, conn, FALSE))
+ return FALSE;
}
else if(m->require_tls)
/* a clear-text STARTTLS protocol with required TLS */