mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04: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
3 changed files with 4 additions and 4 deletions
|
|
@ -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…
Reference in a new issue