diff src/http/modules/ngx_http_static_handler.c @ 465:5aecc125bc33 release-0.1.7

nginx-0.1.7-RELEASE import *) Bugfix: on FreeBSD the segmentation fault may occur if the size of the transferred file was changed; the bug had appeared in 0.1.5.
author Igor Sysoev <igor@sysoev.ru>
date Fri, 12 Nov 2004 14:35:09 +0000
parents a88a3e4e158f
children 621229427cba
line wrap: on
line diff
--- a/src/http/modules/ngx_http_static_handler.c
+++ b/src/http/modules/ngx_http_static_handler.c
@@ -530,6 +530,7 @@ static ngx_int_t ngx_http_static_handler
     b->file_last = ngx_file_size(&fi);
 
     b->file->fd = fd;
+    b->file->name = name;
     b->file->log = log;
 
     out.buf = b;