obj was set before the mutex so someone could have came and updated h->cache_obj
between us setting obj, and useing it.
running now for 10 minutes without core (a record!)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93379
13f79535-47bb-0310-9956-
ffa450edef68
static int remove_entity(cache_handle_t *h)
{
- cache_object_t *obj = h->cache_obj;
+ cache_object_t *obj ;
if (sconf->lock) {
apr_thread_mutex_lock(sconf->lock);
* RACE .. some one might have just deleted this object .. so test
* if it is still around
*/
- if (obj) {
+ if (h->cache_obj) {
+ obj = h->cache_obj;
apr_hash_set(sconf->cacheht, obj->key, strlen(obj->key), NULL);
cleanup_cache_object(obj);
h->cache_obj = NULL;