diff src/http/modules/ngx_http_static_handler.c @ 14:8a529698ed55 NGINX_0_1_7

nginx 0.1.7 *) Bugfix: on FreeBSD the segmentation fault may occur if the size of the transferred file was changed; bug appeared in 0.1.5.
author Igor Sysoev <http://sysoev.ru>
date Fri, 12 Nov 2004 00:00:00 +0300
parents 46833bd150cb
children da8c190bdaba
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;