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

Remove unneeded setting of ret from ssl programs #8217

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion programs/ssl/dtls_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ int main(int argc, char *argv[])

case MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY:
mbedtls_printf(" connection was closed gracefully\n");
ret = 0;
goto close_notify;

default:
Expand Down
1 change: 0 additions & 1 deletion programs/ssl/dtls_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ int main(void)

case MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY:
printf(" connection was closed gracefully\n");
ret = 0;
goto close_notify;

default:
Expand Down
1 change: 0 additions & 1 deletion programs/ssl/ssl_server2.c
Original file line number Diff line number Diff line change
Expand Up @@ -3781,7 +3781,6 @@ int main(int argc, char *argv[])
switch (ret) {
case MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY:
mbedtls_printf(" connection was closed gracefully\n");
ret = 0;
goto close_notify;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a jump over 300 lines!!

Copy link
Contributor

Choose a reason for hiding this comment

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

Many sample programs, and even more the SSL test programs, could use some restructuring. But it's nowhere near the top of my priorities for technical debt resumption.


default:
Expand Down