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

Cleanup client-tls-resume and add new apps to git ignore #368

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

embhorn
Copy link
Member

@embhorn embhorn commented Feb 6, 2023

This addresses a concern from ZD15600

In the resume example, the ssl structure is already freed previously, and here we should be freeing the sslRes structure.

Add newly created apps to git ignore
/dtls/client-dtls13
/dtls/server-dtls13
/tls/server-tls-poll-perf

Comment on lines 286 to 288
#ifdef OPENSSL_EXTRA
if (session)
wolfSSL_SESSION_free(session);
Copy link
Member

Choose a reason for hiding this comment

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

This shouldn't be guarded. Using get1 means that the session always has to be free'd.

Copy link
Member Author

Choose a reason for hiding this comment

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

That's a NULL check. So if wolfSSL_get1_session failed, then wouldn't need to free, right?

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