mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
added one more NULL check at run-time
This commit is contained in:
parent
4b391834ec
commit
60d07a5547
@ -2134,6 +2134,11 @@ static const char *cmd_arguments_limit(cmd_parms *cmd, void *_dcfg,
|
|||||||
assert(cmd != NULL);
|
assert(cmd != NULL);
|
||||||
assert(_dcfg != NULL);
|
assert(_dcfg != NULL);
|
||||||
assert(p1 != NULL);
|
assert(p1 != NULL);
|
||||||
|
// Normally useless code, left to be safe for the moment
|
||||||
|
if (_dcfg == NULL) {
|
||||||
|
ap_log_perror(APLOG_MARK, APLOG_EMERG, 0, cmd->pool, NULL, "cmd_arguments_limit: _dcfg is NULL");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
directory_config *dcfg = (directory_config *)_dcfg;
|
directory_config *dcfg = (directory_config *)_dcfg;
|
||||||
long int limit;
|
long int limit;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user