added one more NULL check at run-time

This commit is contained in:
Marc Stern 2024-08-16 09:23:11 +02:00
parent 4b391834ec
commit 60d07a5547

View File

@ -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;