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:
Stefan Bühler 2012-11-07 13:07:00 +00:00
parent db1d977dea
commit d09fdd877f
2 changed files with 3 additions and 0 deletions

1
NEWS
View File

@ -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)

View File

@ -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;