diff options
| author | Andrew Clayton <a.clayton@nginx.com> | 2025-08-11 19:08:07 +0100 |
|---|---|---|
| committer | Andrew Clayton <a.clayton@nginx.com> | 2025-08-20 13:55:59 +0100 |
| commit | 6482e46a6b35214967095169842e1d5403a01d4d (patch) | |
| tree | d010fd9b480b389293dc90367bf3f1e81098c630 /src/nxt_socket.c | |
| parent | 9f29628f01636abf5a0eaf2a97898267f6b39fa7 (diff) | |
| download | unit-6482e46a6b35214967095169842e1d5403a01d4d.tar.gz unit-6482e46a6b35214967095169842e1d5403a01d4d.tar.bz2 | |
http: compression: Set the temporary file name in n_h_c_c_s_r()
When creating a new nxt_file_t structure in
nxt_http_comp_compress_static_response() for the temporary compressed
file be sure to set the *name* member.
We don't generally need it, but I failed to notice that when calling
nxt_file_close() if the close(2) fails then we log an error message
containing the file name, which at best would have just printed junk.
So set the file name for this particular error case...
This issue was reported by coverity.
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src/nxt_socket.c')
0 files changed, 0 insertions, 0 deletions
