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 for declaration after executable block #341

Merged
merged 2 commits into from Jul 6, 2023
Merged

Conversation

lealem47
Copy link
Contributor

@lealem47 lealem47 commented Jul 5, 2023

zd#16386

@lealem47 lealem47 self-assigned this Jul 5, 2023
@lealem47 lealem47 requested a review from embhorn July 6, 2023 14:58
@lealem47 lealem47 assigned embhorn and unassigned lealem47 Jul 6, 2023
@@ -527,7 +527,9 @@ static int NetConnect(void *context, const char* host, word16 port,
rc = MQTT_CODE_ERROR_NETWORK;
#ifdef WOLFMQTT_NONBLOCK
/* Check for error */
GET_SOCK_ERROR(sock->fd, SOL_SOCKET, SO_ERROR, so_error);
{
GET_SOCK_ERROR(sock->fd, SOL_SOCKET, SO_ERROR, so_error);
Copy link
Member

Choose a reason for hiding this comment

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

Go ahead and wrap the other instances of GET_SOCK_ERROR also, in NetWrite and NetRead_ex

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@lealem47 lealem47 assigned lealem47 and unassigned embhorn Jul 6, 2023
@lealem47 lealem47 requested a review from embhorn July 6, 2023 15:28
@lealem47 lealem47 assigned embhorn and unassigned lealem47 Jul 6, 2023
@embhorn embhorn merged commit 21954d5 into wolfSSL:master Jul 6, 2023
8 checks passed
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