mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Fixes for Parfait errors - mostly unhandled NULL pointer dereference and data type mismatch
This commit is contained in:
committed by
Felipe Zimmerle
parent
5f996d45f0
commit
62a6f228f8
@@ -1340,6 +1340,10 @@ msre_actionset *msre_actionset_create_default(msre_engine *engine) {
|
||||
* Sets the default values for the hard-coded actionset configuration.
|
||||
*/
|
||||
void msre_actionset_set_defaults(msre_actionset *actionset) {
|
||||
|
||||
if (actionset == NULL) {
|
||||
return;
|
||||
}
|
||||
/* Metadata */
|
||||
if (actionset->id == NOT_SET_P) actionset->id = NULL;
|
||||
if (actionset->rev == NOT_SET_P) actionset->rev = NULL;
|
||||
|
Reference in New Issue
Block a user