Index: src/modules/standard/mod_mime_magic.c =================================================================== RCS file: /home/cvs/apache-1.3/src/modules/standard/mod_mime_magic.c,v retrieving revision 1.48 diff -u -r1.48 mod_mime_magic.c --- src/modules/standard/mod_mime_magic.c 18 Jun 2002 01:00:00 -0000 1.48 +++ src/modules/standard/mod_mime_magic.c 19 Sep 2002 09:46:26 -0000 @@ -832,9 +832,13 @@ r->content_encoding = tmp; } - /* detect memory allocation errors */ + /* detect memory allocation or other errors */ if (!r->content_type || (state == rsl_encoding && !r->content_encoding)) { + ap_log_rerror(APLOG_MARK, APLOG_NOERRNO | APLOG_ERR, r, + MODNAME ": unexpected state %d; could be caused by bad " + "data in magic file", + state); return HTTP_INTERNAL_SERVER_ERROR; }