You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2007/11/05 14:35:03 UTC

svn commit: r591990 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

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