]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Addendum to r1.74; Keep only the resulting filename in the global pool,
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 28 Mar 2003 00:00:13 +0000 (00:00 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 28 Mar 2003 00:00:13 +0000 (00:00 +0000)
  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

ssl_engine_config.c

index 02f5fa20c60a7f1ec68271e4b0502fa032ad7522..f9ceb413150a6e3ddef35eb690366e3764b6fa19 100644 (file)
@@ -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);