httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@worldgate.com>
Subject Re: segfaults on CGI's with current CVS snapshot
Date Mon, 04 Aug 1997 22:31:38 GMT
Ok.

The problem pops up between rev. 1.57 and 1.58 of http_request.c.  If
I had _any_ idea of what the heck this diff was supposed to do
I may be able to fix it.  But I don't.  

--- http_request.c      1997/07/07 14:34:27     1.57
+++ http_request.c      1997/07/08 02:04:44     1.58
@@ -414,18 +414,8 @@
         */
        
        if (overrides_here) {
-           int len;
-
-           if (test_htaccess == NULL) {
-               /* we delayed allocating this in case there wasn't a need */
-               test_htaccess = palloc (r->pool,
-                   test_filename_len + 1 + strlen (sconf->access_name));
-           }
-           len = test_dirname_tail - test_dirname;
-           memcpy (test_htaccess, test_dirname, len);
-           strcpy (test_htaccess + len, sconf->access_name);
-           res = parse_htaccess (&htaccess_conf, r, overrides_here,
-                                 test_dirname, test_htaccess);
+           res = parse_htaccess (&htaccess_conf, r, overrides_here,
+                                 test_dirname, sconf->access_name);
            if (res) return res;
        }



Mime
View raw message