tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r591990 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
Date Mon, 05 Nov 2007 13:35:03 GMT
Author: mturk
Date: Mon Nov  5 05:35:02 2007
New Revision: 591990

URL: http://svn.apache.org/viewvc?rev=591990&view=rev
Log:
Allocate temporary mount maps on first directive

Modified:
    tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=591990&r1=591989&r2=591990&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Mon Nov  5 05:35:02 2007
@@ -898,6 +898,11 @@
     if (c[0] != '/')
         return "JkMount context should start with /";
 
+    if (!conf->uri_to_context) {
+        if (!jk_map_alloc(&(conf->uri_to_context))) {
+            return "JkMount Memory error";
+        }        
+    }
     /*
      * Add the new worker to the alias map.
      */
@@ -942,6 +947,12 @@
         return "JkUnMount context should start with /";
 
     uri = apr_pstrcat(cmd->temp_pool, "!", c, NULL);
+
+    if (!conf->uri_to_context) {
+        if (!jk_map_alloc(&(conf->uri_to_context))) {
+            return "JkUnMount Memory error";
+        }        
+    }
     /*
      * Add the new worker to the alias map.
      */



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message