When setting the negotiated alpn protocol, either then length
must be 0 or a pointer must be passed.
Reported in Joshua's sarif data
Closes #18717
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 "