mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Use tempfiles for apr_global_mutex_create() to fix segfaults with Apache 2.2.
Call modsecurity_init() for the first invocation too.
This commit is contained in:
committed by
Felipe Zimmerle
parent
f5dbaae4fb
commit
b90fa2d063
@@ -133,6 +133,12 @@ typedef struct msc_parm msc_parm;
|
||||
|
||||
#define FATAL_ERROR "ModSecurity: Fatal error (memory allocation or unexpected internal error)!"
|
||||
|
||||
static char auditlog_lock_name[L_tmpnam];
|
||||
static char geo_lock_name[L_tmpnam];
|
||||
#ifdef GLOBAL_COLLECTION_LOCK
|
||||
static char dbm_lock_name[L_tmpnam];
|
||||
#endif
|
||||
|
||||
extern DSOLOCAL char *new_server_signature;
|
||||
extern DSOLOCAL char *real_server_signature;
|
||||
extern DSOLOCAL char *chroot_dir;
|
||||
|
Reference in New Issue
Block a user