Handle ENAMETOOLONG, return 404 Not Found (fixes #2396, thx dererkazo)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2850 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
parent
db1d977dea
commit
d09fdd877f
1
NEWS
1
NEWS
|
@ -6,6 +6,7 @@ NEWS
|
|||
- 1.4.32 -
|
||||
* Code cleanup with clang/sparse (fixes #2437, thx kibi)
|
||||
* Ignore EPIPE/ECONNRESET after SSL_shutdown
|
||||
* Handle ENAMETOOLONG, return 404 Not Found (fixes #2396, thx dererkazo)
|
||||
|
||||
- 1.4.31 - 2012-05-31
|
||||
* [ssl] fix segfault in counting renegotiations for openssl versions without TLSEXT/SNI (thx carpii for reporting)
|
||||
|
|
|
@ -611,6 +611,8 @@ handler_t http_response_prepare(server *srv, connection *con) {
|
|||
|
||||
buffer_reset(con->physical.path);
|
||||
return HANDLER_FINISHED;
|
||||
case ENAMETOOLONG:
|
||||
/* file name to be read was too long. return 404 */
|
||||
case ENOENT:
|
||||
con->http_status = 404;
|
||||
|
||||
|
|
Loading…
Reference in New Issue