1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-16 06:15:24 +00:00

Fixed regression introduced in r18356 (CVE-2011-4612): client duration time is now correctly logged. PRIu64 MUST NOT be used with log_write_direct() as depending on platform PRIu64 may be using something not supported by __vsnprintf() of log/log.c. close #2081, see r18356

svn path=/icecast/trunk/icecast/; revision=19287
This commit is contained in:
Philipp Schafft 2014-11-08 13:34:45 +00:00
parent d959c20f11
commit 06977d788c

View File

@ -152,7 +152,7 @@ void logging_access(client_t *client)
user_agent = "-";
log_write_direct (accesslog,
"%s - %H [%s] \"%H %H %H/%H\" %d %" PRIu64 " \"% H\" \"% H\" %lu",
"%s - %H [%s] \"%H %H %H/%H\" %d %llu \"% H\" \"% H\" %llu",
client->con->ip,
username,
datebuf,
@ -161,10 +161,10 @@ void logging_access(client_t *client)
httpp_getvar (client->parser, HTTPP_VAR_PROTOCOL),
httpp_getvar (client->parser, HTTPP_VAR_VERSION),
client->respcode,
client->con->sent_bytes,
(long long unsigned int)client->con->sent_bytes,
referrer,
user_agent,
(unsigned long)stayed);
(long long unsigned int)stayed);
}
/* This function will provide a log of metadata for each
mountpoint. The metadata *must* be in UTF-8, and thus