to disabled/empty caches.
PR:
Obtained from:
Submitted by: Jess Holle <jessh ptc.com>
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105208
13f79535-47bb-0310-9956-
ffa450edef68
[Remove entries to the current 2.0 section below, when backported]
+ *) Fix the global mutex crash when the global mutex is never allocated due
+ to disabled/empty caches. [Jess Holle <jessh ptc.com>]
+
*) Fix a segfault in the LDAP cache purge. [Jess Holle <jessh ptc.com>]
*) mod_rewrite: Handle per-location rules when r->filename is unset.
#endif
#define LDAP_CACHE_LOCK() \
- apr_global_mutex_lock(st->util_ldap_cache_lock)
+ if (st->util_ldap_cache_lock) \
+ apr_global_mutex_lock(st->util_ldap_cache_lock)
#define LDAP_CACHE_UNLOCK() \
- apr_global_mutex_unlock(st->util_ldap_cache_lock)
+ if (st->util_ldap_cache_lock) \
+ apr_global_mutex_unlock(st->util_ldap_cache_lock)
static void util_ldap_strdup (char **str, const char *newstr)