CVSROOT: /cvs Module name: src Changes by: [email protected] 2012/04/04 08:26:40
Modified files:
usr.sbin/nginx/src/core: ngx_cycle.c ngx_file.c
usr.sbin/nginx/src/http: ngx_http_core_module.c
Log message:
Set the correct string lengths when stripping the chroot prefix
from the paths because ngx_str_set() does not set it correctly for us.
This change also avoid a use after free() case which was discovered by sthen@
Based on a diff from Steffen Daode Nurpmeso, tested by me and sthen@
