Changeset aa68232 in mod_gnutls for src/gnutls_hooks.c


Ignore:
Timestamp:
Jun 10, 2016, 4:16:48 AM (4 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, master, proxy-ticket, upstream
Children:
d6834e0
Parents:
e809fb3
Message:

Move global cache mutex into the private cache struct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    re809fb3 raa68232  
    375375        sc->cache_config = sc_base->cache_config;
    376376        sc->cache_timeout = sc_base->cache_timeout;
    377         sc->cache_mutex = sc_base->cache_mutex;
    378377        sc->cache = sc_base->cache;
    379378
     
    522521                    "GnuTLS: Failed to run Cache Init");
    523522        }
    524     }
    525 
    526     /* reinit cache mutex */
    527     if (sc->cache_mutex != NULL)
    528     {
    529         const char *lockfile = apr_global_mutex_lockfile(sc->cache_mutex);
    530         rv = apr_global_mutex_child_init(&sc->cache_mutex, lockfile, p);
    531         if (rv != APR_SUCCESS)
    532             ap_log_error(APLOG_MARK, APLOG_EMERG, rv, s,
    533                          "Failed to reinit mutex '%s'", MGS_CACHE_MUTEX_NAME);
    534523    }
    535524
Note: See TracChangeset for help on using the changeset viewer.