Browse Source

fix segfault when temp file for upload couldn't be created (found by coverity)

From: Stefan Bühler <stbuehler@web.de>

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2999 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.36
Stefan Bühler 7 years ago
parent
commit
2bd89370fc
  1. 1
      NEWS
  2. 6
      src/chunk.c

1
NEWS

@ -25,6 +25,7 @@ NEWS
* parse If-None-Match for ETag validation (fixes #2578)
* fix memory leak in mod_status when no counters are set (found by coverity)
* [mod_magnet] fix segfault when accessing not existing lighty.req_env[] entry (found by coverity)
* fix segfault when temp file for upload couldn't be created (found by coverity)
- 1.4.35 - 2014-03-12
* [network/ssl] fix build error if TLSEXT is disabled

6
src/chunk.c

@ -458,9 +458,9 @@ static int chunkqueue_append_to_tempfile(server *srv, chunkqueue *dest, const ch
* Instead of sending 500 we send 413 and say the request is too large
*/
log_error_write(srv, __FILE__, __LINE__, "sbs",
"denying upload as opening temp-file for upload failed:",
dst_c->file.name, strerror(errno));
log_error_write(srv, __FILE__, __LINE__, "ss",
"denying upload as opening temp-file for upload failed:",
strerror(errno));
return -1;
}

Loading…
Cancel
Save