mirror of
https://github.com/curl/curl.git
synced 2026-08-25 08:53:36 +03:00
cf-setup: improve readability
Restructure the code in cf-setup connect to make it better readable what is happening for establishing the connection's filter chain. Closes #21827
This commit is contained in:
parent
c53426231d
commit
032b15c434
4 changed files with 238 additions and 178 deletions
|
|
@ -3449,17 +3449,6 @@ CURLcode Curl_cf_h3_proxy_create(struct Curl_cfilter **pcf,
|
|||
cf->next->conn = cf->conn;
|
||||
cf->next->sockindex = cf->sockindex;
|
||||
|
||||
if(ctx->udp_tunnel) {
|
||||
struct Curl_cfilter *cf_caps = NULL;
|
||||
result = Curl_cf_capsule_create(&cf_caps, data, conn);
|
||||
if(result)
|
||||
goto out;
|
||||
cf_caps->conn = conn;
|
||||
cf_caps->sockindex = cf->sockindex;
|
||||
cf_caps->next = cf;
|
||||
cf = cf_caps;
|
||||
}
|
||||
|
||||
out:
|
||||
*pcf = (!result) ? cf : NULL;
|
||||
if(result) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue