mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 06:41:32 +02:00
BUG/MINOR: mux-fcgi: Use a literal string as format in app_log()
This avoid any crashes if stderr messages contain format specifiers. This patch partially fixes the issue #295. No backport needed.
This commit is contained in:
parent
82c798a082
commit
c45791aa52
@ -1931,7 +1931,7 @@ static int fcgi_strm_handle_stderr(struct fcgi_conn *fconn, struct fcgi_strm *fs
|
||||
trash.area[ret] = '\n';
|
||||
trash.area[ret+1] = '\0';
|
||||
tag.area = fconn->app->name; tag.data = strlen(fconn->app->name);
|
||||
app_log(&fconn->app->logsrvs, &tag, LOG_ERR, trash.area);
|
||||
app_log(&fconn->app->logsrvs, &tag, LOG_ERR, "%s", trash.area);
|
||||
|
||||
if (fconn->drl)
|
||||
goto fail;
|
||||
|
Loading…
x
Reference in New Issue
Block a user