You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ma...@apache.org on 2002/12/11 22:17:10 UTC
cvs commit: apache-1.3/src/modules/standard mod_mime_magic.c
martin 2002/12/11 13:17:10
Modified: src/modules/standard mod_mime_magic.c
Log:
Add forgotten ap_pclosef() inthe error branch
Revision Changes Path
1.49 +1 -0 apache-1.3/src/modules/standard/mod_mime_magic.c
Index: mod_mime_magic.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/modules/standard/mod_mime_magic.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- mod_mime_magic.c 18 Jun 2002 01:00:00 -0000 1.48
+++ mod_mime_magic.c 11 Dec 2002 21:17:10 -0000 1.49
@@ -880,6 +880,7 @@
* try looking at the first HOWMANY bytes
*/
if ((nbytes = read(fd, (char *) buf, sizeof(buf) - 1)) == -1) {
+ (void) ap_pclosef(r->pool, fd);
ap_log_rerror(APLOG_MARK, APLOG_ERR, r,
MODNAME ": read failed: %s", r->filename);
return HTTP_INTERNAL_SERVER_ERROR;