← Commit list

4e77388a0b

Joshua Rogers
Joshua Rogers
2025-10-07
SUCCESS Duration: 226s

Subject

h3/nghttp3: return NGHTTP3_ERR_CALLBACK_FAILURE from recv_header

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/vquic/curl_ngtcp2.c+2 -2
@@ -1142,7 +1142,7 @@ static int cb_h3_recv_header(nghttp3_conn *conn, int64_t sid,
result = Curl_http_decode_status(&stream->status_code,
(const char *)h3val.base, h3val.len);
if(result)
- return -1;
+ return NGHTTP3_ERR_CALLBACK_FAILURE;
curlx_dyn_reset(&ctx->scratch);
result = curlx_dyn_addn(&ctx->scratch, STRCONST("HTTP/3 "));
if(!result)
@@ -1156,7 +1156,7 @@ static int cb_h3_recv_header(nghttp3_conn *conn, int64_t sid,
CURL_TRC_CF(data, cf, "[%" FMT_PRId64 "] status: %s",
stream_id, curlx_dyn_ptr(&ctx->scratch));
if(result) {
- return -1;
+ return NGHTTP3_ERR_CALLBACK_FAILURE;
}
}
else {