Commit 84717b8a authored by Doug MacEachern's avatar Doug MacEachern
Browse files

call ssl_mutex_kill() during module cleanup


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@92788 13f79535-47bb-0310-9956-ffa450edef68
parent b95e21cd
Loading
Loading
Loading
Loading
+1 −2
Changes for ssl_engine_init.c: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -991,9 +991,8 @@ apr_status_t ssl_init_ModuleKill(void *data)
     * Drop the session cache and mutex
     */
    ssl_scache_kill(s);
#if 0 /* XXX */

    ssl_mutex_kill(s);
#endif

    /* 
     * Destroy the temporary keys and params
+4 −0
Changes for ssl_engine_mutex.c: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -117,8 +117,12 @@ int ssl_mutex_kill(server_rec *s)

    if (mc->nMutexMode == SSL_MUTEXMODE_NONE)
        return TRUE;
    /* XXX: currently mutex is not created until 2nd pass at startup */
    if (!mc->pMutex)
        return TRUE;
    if (apr_lock_destroy(mc->pMutex) != APR_SUCCESS)
        return FALSE;
    mc->pMutex = NULL;
    return TRUE;
}