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: PSK extension w/o session cache crashing #177

Merged
merged 1 commit into from
Mar 30, 2023
Merged

fix: PSK extension w/o session cache crashing #177

merged 1 commit into from
Mar 30, 2023

Conversation

gaukas
Copy link
Contributor

@gaukas gaukas commented Mar 22, 2023

Fixes a bug causing client to crash (SIGSEGV) WHEN PSK extension is set with empty session cache AND server sends HelloRetryRequest.

Crashing is related to:

pskSuite := cipherSuiteTLS13ByID(hs.session.cipherSuite)

Where hs.session will be nil under certain circumstances.

Fixes a bug causing client to crash (SIGSEGV) WHEN PSK extension is set with empty session cache AND server sends HelloRetryRequest.
@gaukas gaukas merged commit 7aa684a into refraction-networking:master Mar 30, 2023
@gaukas gaukas deleted the fix-psk-without-session branch March 30, 2023 15:16
@gaukas gaukas restored the fix-psk-without-session branch April 7, 2023 01:52
@gaukas gaukas deleted the fix-psk-without-session branch April 7, 2023 02:02
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.

1 participant