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

fix a crash in the http3.Server when GetConfigForClient returns nil #2925

Merged
merged 1 commit into from
Dec 4, 2020

Conversation

marten-seemann
Copy link
Member

Fixes #2924.

@@ -149,6 +149,9 @@ func (s *Server) serveImpl(tlsConf *tls.Config, conn net.PacketConn) error {
return nil, err
}
}
if conf == nil {
return nil, nil
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NextProtos may not be set if return immediately?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Should be fixed now.

@marten-seemann marten-seemann force-pushed the fix-http3-server-getconfigforclient-nil branch from 0ff5809 to 9f14d82 Compare December 3, 2020 09:51
@codecov
Copy link

codecov bot commented Dec 3, 2020

Codecov Report

Merging #2925 (9f14d82) into master (a76879c) will decrease coverage by 0.02%.
The diff coverage is 77.78%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2925      +/-   ##
==========================================
- Coverage   85.77%   85.76%   -0.02%     
==========================================
  Files         133      133              
  Lines        9180     9184       +4     
==========================================
+ Hits         7874     7876       +2     
- Misses        958      959       +1     
- Partials      348      349       +1     
Impacted Files Coverage Δ
http3/server.go 64.73% <77.78%> (-0.27%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a76879c...9f14d82. Read the comment docs.

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.

panic when GetConfigForClient returns nil
3 participants