fixup using a disable protocol should not be accepted

This commit is contained in:
Daniel Stenberg 2026-01-19 13:35:08 +01:00
parent 8c4aa33404
commit e2f480197c
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -1481,7 +1481,7 @@ static CURLcode findprotocol(struct Curl_easy *data,
{
const struct Curl_scheme *p = Curl_get_scheme(protostr);
if(p && /* Protocol found in table. Check if allowed */
if(p && p->run && /* Protocol found spported. Check if allowed */
(data->set.allowed_protocols & p->protocol)) {
/* it is allowed for "normal" request, now do an extra check if this is