You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by rj...@apache.org on 2007/11/19 20:47:25 UTC

svn commit: r596408 - /tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c

Author: rjung
Date: Mon Nov 19 11:47:23 2007
New Revision: 596408

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

Port from r591990 of apache-2.0/mod_jk.c.

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

Modified: tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c?rev=596408&r1=596407&r2=596408&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c Mon Nov 19 11:47:23 2007
@@ -870,6 +870,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.
      */
@@ -912,6 +917,12 @@
     if (c[0] != '/')
         return "JkUnMount context should start with /";
     uri = ap_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