mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 13:26:01 +03:00
Merge pull request #3096 from gberkes/v3/sonar_return_never_will_be_executed
Clean up 'return' never will be executed.
This commit is contained in:
commit
734646dbf1
@ -73,7 +73,7 @@ struct data_ms {
|
||||
};
|
||||
|
||||
|
||||
static void *process_request(void *data) {
|
||||
[[noreturn]] static void *process_request(void *data) {
|
||||
struct data_ms *a = (struct data_ms *)data;
|
||||
modsecurity::ModSecurity *modsec = a->modsec;
|
||||
modsecurity::RulesSet *rules = a->rules;
|
||||
@ -102,8 +102,7 @@ static void *process_request(void *data) {
|
||||
delete modsecTransaction;
|
||||
}
|
||||
|
||||
pthread_exit(NULL);
|
||||
return NULL;
|
||||
pthread_exit(nullptr);
|
||||
}
|
||||
|
||||
|
||||
@ -165,7 +164,6 @@ class ReadingLogsViaRuleMessage {
|
||||
|
||||
delete rules;
|
||||
delete modsec;
|
||||
pthread_exit(NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -35,8 +35,5 @@ int main(int argc, char **argv) {
|
||||
response_headers, response_body, ip, rules);
|
||||
rlvrm.process();
|
||||
|
||||
|
||||
|
||||
pthread_exit(NULL);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user