You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
814 B

  1. From: =?UTF-8?q?Stefan=20B=C3=BChler?= <stbuehler@web.de>
  2. Date: Thu, 13 Aug 2015 18:44:27 +0000
  3. Subject: [PATCH] fix out-of-filedescriptors when uploading "large" files
  4. (fixes #2660, thx rmilecki)
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. From: Stefan Bühler <stbuehler@web.de>
  9. git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3009 152afb58-edef-0310-8abb-c4023f1b3aa9
  10. ---
  11. src/chunk.c | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. --- a/src/chunk.c
  14. +++ b/src/chunk.c
  15. @@ -432,7 +432,7 @@ static int chunkqueue_append_to_tempfile
  16. * */
  17. if (NULL != dest->last
  18. - && FILE_CHUNK != dest->last->type
  19. + && FILE_CHUNK == dest->last->type
  20. && dest->last->file.is_temp
  21. && -1 != dest->last->file.fd
  22. && 0 == dest->last->offset) {