I just submitted a patch to [EMAIL PROTECTED] for this bug (and have
attached it below)

sterling

Index: modules/http/mod_mime.c
===================================================================
RCS file: /home/cvspublic/httpd-2.0/modules/http/mod_mime.c,v
retrieving revision 1.55
diff -u -r1.55 mod_mime.c
--- modules/http/mod_mime.c     2001/08/19 05:48:18     1.55
+++ modules/http/mod_mime.c     2001/08/22 19:45:04
@@ -812,7 +812,7 @@
     /* Parse filename extensions which can be in any order
      */
     while (*fn && (ext = ap_getword(r->pool, &fn, '.'))) {
-        extension_info *exinfo;
+        extension_info *exinfo = NULL;
         int found;

         if (*ext == '\0')  /* ignore empty extensions "bad..html" */
@@ -827,9 +827,10 @@
         ap_str_tolower(ext);
 #endif

-        exinfo = (extension_info*) apr_hash_get(conf->extension_mappings,
-                                                ext, APR_HASH_KEY_STRING);
-
+        if( conf->extension_mappings != NULL ) {
+            exinfo = (extension_info*) apr_hash_get(conf->extension_mappings,
+                                                    ext, APR_HASH_KEY_STRING);
+        }
         if (exinfo == NULL) {
             if ((type = apr_hash_get(mime_type_extensions, ext,
                                      APR_HASH_KEY_STRING)) != NULL) {




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to