Commit 8a3e23d3 authored by William A. Rowe Jr's avatar William A. Rowe Jr
Browse files

  Addendum to r1.74; Keep only the resulting filename in the global pool,
  toss the temporary strings away.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@99097 13f79535-47bb-0310-9956-ffa450edef68
parent ee2c7f6f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -373,7 +373,7 @@ const char *ssl_cmd_SSLMutex(cmd_parms *cmd,
    const char *err;
    SSLModConfigRec *mc = myModConfig(cmd->server);
    /* Split arg_ into meth and file */
    char *meth = apr_pstrdup(cmd->server->process->pool, arg_);
    char *meth = apr_pstrdup(cmd->temp_pool, arg_);
    char *file = strchr(meth, ':');
    if (file) {
        *(file++) = '\0';
@@ -423,7 +423,7 @@ const char *ssl_cmd_SSLMutex(cmd_parms *cmd,
#if APR_HAS_POSIXSEM_SERIALIZE
    else if (!strcasecmp(meth, "posixsem")) {
        mc->nMutexMech = APR_LOCK_POSIXSEM;
        mc->szMutexFile = file;
        mc->szMutexFile = apr_pstrdup(cmd->server->process->pool, file);
        file = NULL;
    }
#endif
@@ -451,7 +451,7 @@ const char *ssl_cmd_SSLMutex(cmd_parms *cmd,
        /* Posix/SysV semaphores aren't file based, use the literal name 
         * if provided and fall back on APR's default if not.
         */
        mc->szMutexFile = file;
        mc->szMutexFile = apr_pstrdup(cmd->server->process->pool, file);
        file = NULL;
    }
#endif
@@ -465,7 +465,7 @@ const char *ssl_cmd_SSLMutex(cmd_parms *cmd,
     * are looking to use
     */
    if (file) {
        mc->szMutexFile = ap_server_root_relative(cmd->pool, file);
        mc->szMutexFile = ap_server_root_relative(cmd->server->process->pool, file);
        if (!mc->szMutexFile) {
            return apr_pstrcat(cmd->pool, "Invalid SSLMutex ", meth, 
                               ": filepath ", file, NULL);