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:
Martin.Blapp
2018-11-15 12:41:57 +01:00
committed by Felipe Zimmerle
parent f5dbaae4fb
commit b90fa2d063
2 changed files with 12 additions and 3 deletions

View File

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