mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:01:41 +03:00
vtls: check final cfilter node in find_ssl_filter
find_ssl_filter used while(cf && cf->next) and skipped the last node. If the SSL filter was last, channel binding lookup failed and we returned CURLE_BAD_FUNCTION_ARGUMENT. Switch to while(cf) so the tail is examined. This bug was found with ZeroPath. Closes #19229
This commit is contained in:
parent
8616e5aada
commit
0d5e24281d
1 changed files with 2 additions and 4 deletions
|
|
@ -5684,10 +5684,8 @@ static CURLcode ossl_get_channel_binding(struct Curl_easy *data, int sockindex,
|
|||
break;
|
||||
}
|
||||
|
||||
if(cf->next)
|
||||
cf = cf->next;
|
||||
|
||||
} while(cf->next);
|
||||
cf = cf->next;
|
||||
} while(cf);
|
||||
|
||||
if(!octx) {
|
||||
failf(data, "Failed to find the SSL filter");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue