Skip to content

cf-https-connect: allocate ctx at first in cf_hc_create()#19454

Closed
x2018 wants to merge 1 commit into
curl:masterfrom
x2018:cf_https_connect_null_deref
Closed

cf-https-connect: allocate ctx at first in cf_hc_create()#19454
x2018 wants to merge 1 commit into
curl:masterfrom
x2018:cf_https_connect_null_deref

Conversation

@x2018
Copy link
Copy Markdown
Contributor

@x2018 x2018 commented Nov 10, 2025

Allocate ctx at first, then do the check for alpn_count and CURL_ARRAYSIZE(ctx->ballers) to improve readability, although sizeof is actually safe.

@github-actions github-actions Bot added the HTTP label Nov 10, 2025
@bagder bagder closed this in 0dacc07 Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants