[CLEANUP] Remove unneeded chars allocation
Some arrays used to log addresses add some more bytes for ports but this space
is never used.
diff --git a/src/dumpstats.c b/src/dumpstats.c
index 735f83b..7745f8f 100644
--- a/src/dumpstats.c
+++ b/src/dumpstats.c
@@ -2884,7 +2884,7 @@
/* 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);
diff --git a/src/log.c b/src/log.c
index 9e26967..d1387b5 100644
--- a/src/log.c
+++ b/src/log.c
@@ -318,7 +318,7 @@
*/
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;
diff --git a/src/proto_http.c b/src/proto_http.c
index 4f0d48f..29d8f51 100644
--- a/src/proto_http.c
+++ b/src/proto_http.c
@@ -846,7 +846,7 @@
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 @@
*/
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;