← Commit list

fd8c409d6a

Stefan Eissing
Stefan Eissing
2026-09-09
SUCCESS Duration: 404s

Subject

h2 push: fix port check on pushed authority

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/http2.c+1 -1
@@ -1440,7 +1440,7 @@ static int on_header(nghttp2_session *session, const nghttp2_frame *frame,
/* no memory */
return NGHTTP2_ERR_CALLBACK_FAILURE;
if(!curl_strequal(check, (const char *)value) &&
- ((data->state.origin->port != cf->conn->origin->scheme->defport) ||
+ ((data->state.origin->port != data->state.origin->scheme->defport) ||
!curl_strequal(data->state.origin->hostname, (const char *)value))) {
/* This is push is not for the same authority that was asked for in
* the URL. RFC 7540 section 8.2 says: "A client MUST treat a