diff options
author | Stefan Bühler <stbuehler@web.de> | 2015-07-05 22:00:17 +0000 |
---|---|---|
committer | Stefan Bühler <stbuehler@web.de> | 2015-07-05 22:00:17 +0000 |
commit | 2bd89370fcefdb509bad729a4a26074841528360 (patch) | |
tree | ad589518661c31e509cbefbc658759a70813ec59 | |
parent | c5737093db9e7d8db75c7d6b32ae4c3886b7903a (diff) | |
download | lighttpd-git-2bd89370fcefdb509bad729a4a26074841528360.tar.gz |
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
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | src/chunk.c | 6 |
2 files changed, 4 insertions, 3 deletions
@@ -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 diff --git a/src/chunk.c b/src/chunk.c index ccdae9ad..38edbb56 100644 --- a/src/chunk.c +++ b/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; } |