Skip to content

Tls client: fix bad comparison for non-blocking shutdown call.#327

Merged
kareem-wolfssl merged 1 commit intowolfSSL:masterfrom
JamesMenetrey:bad_nonblocking_shutdown
Jul 20, 2022
Merged

Tls client: fix bad comparison for non-blocking shutdown call.#327
kareem-wolfssl merged 1 commit intowolfSSL:masterfrom
JamesMenetrey:bad_nonblocking_shutdown

Conversation

@JamesMenetrey
Copy link
Copy Markdown
Contributor

@JamesMenetrey JamesMenetrey commented Jul 20, 2022

Dear WolfSSL developers,

After reading your example of the non-blocking TLS client, I think the loop's condition for the TLS shutdown is incorrect. The variable err must be compared, instead of ret directly.

I am providing this PR to fix this issue.

Cheers,
Jämes

@dgarske
Copy link
Copy Markdown
Member

dgarske commented Jul 20, 2022

Hi @JamesMenetrey , you are correct about this bug. We will treat as a bug report and fix. Assigning ticket to @kareem-wolfssl. Thanks, David Garske, wolfSSL

Copy link
Copy Markdown
Contributor

@kareem-wolfssl kareem-wolfssl left a comment

Choose a reason for hiding this comment

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

Thanks for this patch, great catch.

@kareem-wolfssl kareem-wolfssl merged commit d4c6965 into wolfSSL:master Jul 20, 2022
@JamesMenetrey JamesMenetrey deleted the bad_nonblocking_shutdown branch July 21, 2022 06:58
yota22721 pushed a commit to yota22721/wolfssl-examples that referenced this pull request Jan 25, 2025
…tdown

Tls client: fix bad comparison for non-blocking shutdown call.
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.

3 participants