diff --git a/NEWS b/NEWS index dabdedaf..db85d17b 100644 --- a/NEWS +++ b/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 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; }