mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-02-05 09:21:42 +01:00
[CLEANUP] Remove unneeded chars allocation
Some arrays used to log addresses add some more bytes for ports but this space is never used.
This commit is contained in:
parent
b40dc94a9a
commit
acd7d63ff9
@ -2884,7 +2884,7 @@ int stats_dump_sess_to_buffer(struct session *s, struct buffer *rep)
|
||||
|
||||
/* and start from where we stopped */
|
||||
while (s->data_ctx.sess.bref.ref != &sessions) {
|
||||
char pn[INET6_ADDRSTRLEN + strlen(":65535")];
|
||||
char pn[INET6_ADDRSTRLEN];
|
||||
struct session *curr_sess;
|
||||
|
||||
curr_sess = LIST_ELEM(s->data_ctx.sess.bref.ref, struct session *, list);
|
||||
|
||||
@ -318,7 +318,7 @@ void send_log(struct proxy *p, int level, const char *message, ...)
|
||||
*/
|
||||
void tcp_sess_log(struct session *s)
|
||||
{
|
||||
char pn[INET6_ADDRSTRLEN + strlen(":65535")];
|
||||
char pn[INET6_ADDRSTRLEN];
|
||||
struct proxy *fe = s->fe;
|
||||
struct proxy *be = s->be;
|
||||
struct proxy *prx_log;
|
||||
|
||||
@ -846,7 +846,7 @@ struct pool_head *pool2_capture;
|
||||
|
||||
void http_sess_clflog(struct session *s)
|
||||
{
|
||||
char pn[INET6_ADDRSTRLEN + strlen(":65535")];
|
||||
char pn[INET6_ADDRSTRLEN];
|
||||
struct proxy *fe = s->fe;
|
||||
struct proxy *be = s->be;
|
||||
struct proxy *prx_log;
|
||||
@ -1072,7 +1072,7 @@ trunc:
|
||||
*/
|
||||
void http_sess_log(struct session *s)
|
||||
{
|
||||
char pn[INET6_ADDRSTRLEN + strlen(":65535")];
|
||||
char pn[INET6_ADDRSTRLEN];
|
||||
struct proxy *fe = s->fe;
|
||||
struct proxy *be = s->be;
|
||||
struct proxy *prx_log;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user