Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handshake: clone the tls.Config returned by GetConfigForClient #4133

Merged
merged 1 commit into from Oct 27, 2023

Conversation

marten-seemann
Copy link
Member

@marten-seemann marten-seemann commented Oct 27, 2023

Fixes #4132.

We modify this tls.Config, so we should clone it first. Otherwise, this could cause conflicts with how the application is using that config.

@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

Merging #4133 (acbefb2) into master (e2622bf) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #4133      +/-   ##
==========================================
+ Coverage   83.73%   83.75%   +0.02%     
==========================================
  Files         150      150              
  Lines       15429    15430       +1     
==========================================
+ Hits        12918    12922       +4     
+ Misses       2012     2010       -2     
+ Partials      499      498       -1     
Files Coverage Δ
internal/handshake/crypto_setup.go 58.26% <100.00%> (+0.09%) ⬆️

... and 1 file with indirect coverage changes

We modify this tls.Config, so we shouldn't modify it. This could cause
conflicts with how the application is using that config.
@marten-seemann marten-seemann force-pushed the dont-modify-getconfigforclient-config branch from 85b8e39 to acbefb2 Compare October 27, 2023 04:54
@marten-seemann marten-seemann merged commit d309060 into master Oct 27, 2023
33 of 34 checks passed
@marten-seemann marten-seemann deleted the dont-modify-getconfigforclient-config branch October 27, 2023 05:36
marten-seemann added a commit that referenced this pull request Oct 27, 2023
We modify this tls.Config, so we should clone it first. Otherwise, this could
cause conflicts with how the application is using that config.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tls.Config returned by GetConfigForClient is modified by quic-go
2 participants