-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Remove unneeded setting of ret from ssl programs #8217
Conversation
Remove coverity warnings on unused values. Signed-off-by: Paul Elliott <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Meh, I'm not very happy with Coverity here, setting ret
to a known value before jumping is perfectly reasonable, but ok.
@@ -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; |
There was a problem hiding this comment.
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!!
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, happy with single-reviewer
Description
Remove coverity warnings on unused values.
PR checklist
Please tick as appropriate and edit the reasons (e.g.: "backport: not needed because this is a new feature")
provided, ornot required (minor change in example programs), or not required(Backport 2.28: Remove unneeded setting of ret from ssl programs #8218 )provided, ornot required (minor change in programs)