← Commit list

cbc30d4ed2

Stefan Eissing
Stefan Eissing
2025-09-25
FAILED Duration: 156s

Subject

vtls: alpn setting, check proto parameter

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/vtls/vtls.c+5 -0
@@ -1993,6 +1993,11 @@ CURLcode Curl_alpn_set_negotiated(struct Curl_cfilter *cf,
result = CURLE_SSL_CONNECT_ERROR;
goto out;
}
+ else if(!proto) {
+ DEBUGASSERT(0); /* with length, we need a pointer */
+ result = CURLE_SSL_CONNECT_ERROR;
+ goto out;
+ }
else if((strlen(connssl->negotiated.alpn) != proto_len) ||
memcmp(connssl->negotiated.alpn, proto, proto_len)) {
failf(data, "ALPN: asked for '%s' from previous session, but server "