Skip to content

Commit

Permalink
Merge pull request #8217 from paul-elliott-arm/remove_unused_values_p…
Browse files Browse the repository at this point in the history
…rograms

Remove unneeded setting of ret from ssl programs
  • Loading branch information
gilles-peskine-arm authored Sep 18, 2023
2 parents 5083a5b + fd3360e commit 8fbef06
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
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;

default:
Expand Down

0 comments on commit 8fbef06

Please sign in to comment.