[master] 2aa9a8b0b varnishd: Fix debug.listen_address for full length IPv6
Nils Goroll
nils.goroll at uplex.de
Sat Jan 9 20:17:14 UTC 2021
commit 2aa9a8b0bc7b75f95b4eb4ffd71894b9659e555a
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Sat Jan 9 14:53:11 2021 +0100
varnishd: Fix debug.listen_address for full length IPv6
32 bytes are not enough to hold the colons of a full length IPv6
address.
diff --git a/bin/varnishd/cache/cache_acceptor.c b/bin/varnishd/cache/cache_acceptor.c
index beedeaf5c..471ecc824 100644
--- a/bin/varnishd/cache/cache_acceptor.c
+++ b/bin/varnishd/cache/cache_acceptor.c
@@ -654,7 +654,7 @@ static void v_matchproto_(cli_func_t)
ccf_listen_address(struct cli *cli, const char * const *av, void *priv)
{
struct listen_sock *ls;
- char h[32], p[32];
+ char h[VTCP_ADDRBUFSIZE], p[VTCP_PORTBUFSIZE];
(void)cli;
(void)av;
More information about the varnish-commit
mailing list