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

Don't share tcn_ssl_verify_config_t between tcn_ssl_state_t and tcn_s… #850

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

normanmaurer
Copy link
Member

…sl_ctxt_t

Motivation:

Let's not share the same memory between tcn_ssl_state_t and tcn_ssl_ctxt_t as it makes lifetime handling of the memory and prone to segfaults

Modifications:

  • Let tcn_ssl_state_t contain tcn_ssl_verify_config_t and copy over the config from the tcn_ssl_ctxt_t if needed.
  • Remove free calls that are not needed anymore

Result:

Fix possible lifetime issue

…sl_ctxt_t

Motivation:

Let's not share the same memory between tcn_ssl_state_t and tcn_ssl_ctxt_t as it makes lifetime handling of the memory and prone to segfaults

Modifications:

- Let tcn_ssl_state_t contain tcn_ssl_verify_config_t and copy over the config from the tcn_ssl_ctxt_t if needed.
- Remove free calls that are not needed anymore

Result:

Fix possible lifetime issue
@normanmaurer normanmaurer added this to the 2.0.63.Final milestone Feb 19, 2024
@normanmaurer normanmaurer merged commit 21c9201 into main Feb 19, 2024
7 checks passed
@normanmaurer normanmaurer deleted the verify_config_share branch February 19, 2024 19:25
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.

None yet

2 participants