@@ -133,7 +133,8 @@ int modsecurity_init(msc_engine *msce, apr_pool_t *mp) {
133
133
curl_global_init (CURL_GLOBAL_ALL );
134
134
#endif
135
135
/* Serial audit log mutext */
136
- rc = apr_global_mutex_create (& msce -> auditlog_lock , NULL , APR_LOCK_DEFAULT , mp );
136
+ tmpnam (auditlog_lock_name );
137
+ rc = apr_global_mutex_create (& msce -> auditlog_lock , auditlog_lock_name , APR_LOCK_DEFAULT , mp );
137
138
if (rc != APR_SUCCESS ) {
138
139
//ap_log_error(APLOG_MARK, APLOG_ERR, rv, s, "mod_security: Could not create modsec_auditlog_lock");
139
140
//return HTTP_INTERNAL_SERVER_ERROR;
@@ -154,7 +155,8 @@ int modsecurity_init(msc_engine *msce, apr_pool_t *mp) {
154
155
}
155
156
#endif /* SET_MUTEX_PERMS */
156
157
157
- rc = apr_global_mutex_create (& msce -> geo_lock , NULL , APR_LOCK_DEFAULT , mp );
158
+ tmpnam (geo_lock_name );
159
+ rc = apr_global_mutex_create (& msce -> geo_lock , geo_lock_name , APR_LOCK_DEFAULT , mp );
158
160
if (rc != APR_SUCCESS ) {
159
161
return -1 ;
160
162
}
@@ -171,7 +173,8 @@ int modsecurity_init(msc_engine *msce, apr_pool_t *mp) {
171
173
#endif /* SET_MUTEX_PERMS */
172
174
173
175
#ifdef GLOBAL_COLLECTION_LOCK
174
- rc = apr_global_mutex_create (& msce -> dbm_lock , NULL , APR_LOCK_DEFAULT , mp );
176
+ tmpnam (dbm_lock_name );
177
+ rc = apr_global_mutex_create (& msce -> dbm_lock , dbm_lock_name , APR_LOCK_DEFAULT , mp );
175
178
if (rc != APR_SUCCESS ) {
176
179
return -1 ;
177
180
}
0 commit comments