-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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 unreachable code in cms_main() in apps #21474
Conversation
This looks like it could be accepted without a CLA. Please add Alternatively please submit a CLA as per https://www.openssl.org/policies/cla.html |
Of course, I can add the CLA:trivial, but I signed the ICLA at last week and I received an email confirming that "I've added you to our CLA database and you should now be able to contribute" |
0df4b80
to
bdb75e5
Compare
Thanks - looks like the bot was looking at out-of-date data |
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
I suspect that there is an email address mismatch. Setting the author on the git commit might fix the CLA issue: https://www.git-tower.com/learn/git/faq/change-author-name-email |
I do not think this is eligible for |
bdb75e5
to
a26f089
Compare
I reverted the CLA: trivial in the commit. |
There was a problem with the letter case in your e-mail address in the CLA database. Fixed now. |
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.
Now needs changes :(
This actually fixes a bug - the warning was not produced so IMO this is eligible also for 3.1 and 3.0 branches. |
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.
LTM
This pull request is ready to merge |
Merged to master, 3.1, and 3.0 branches. Thank you for your contribution. |
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from #21474)
I suggest changing code so that there is no unreachable code.
There is a warning in cms_main() on line 843, but it is unreachable
because on line 817 there is a check 'if (operation == SMIME_ENCRYPT)', and line 843 is in this loop and condition to hit the line 843 is 'operation != SMIME_ENCRYPT'