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

Clean up 'return' never will be executed. #3096

Conversation

gberkes
Copy link

@gberkes gberkes commented Feb 26, 2024

Issue reference: https://sonarcloud.io/project/issues?open=AY1CfKFNrsSpWCKX0w9c&id=owasp-modsecurity_ModSecurity

There are three occurrences of this issue. I deleted pthread_exit(NULL) calls, because these execution points are not in
pthread execution scope. In process_request() I kept pthread_exit(NULL) and deleted return(NULL), because here we are
in pthread execution context.
(FYI: 11.5 Thread Termination in Advanced Programming in the UNIX® Environment, Third Edition)

@airween airween self-assigned this Feb 26, 2024
@airween airween added the 3.x Related to ModSecurity version 3.x label Feb 26, 2024
Copy link
Contributor

@MirkoDziadzka MirkoDziadzka left a comment

Choose a reason for hiding this comment

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

looks good to me, one comment for possible improvements.

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@airween airween merged commit 734646d into owasp-modsecurity:v3/master Feb 27, 2024
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Related to ModSecurity version 3.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants