mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-18 15:26:47 +02:00
[MINOR] frontend: ensure debug message length is always initialized
If the socket family ever changes from AF_INET*/AF_UNIX, we'd have a problem.
This commit is contained in:
@@ -178,7 +178,7 @@ int frontend_accept(struct session *s)
|
||||
|
||||
if (unlikely((global.mode & MODE_DEBUG) && (!(global.mode & MODE_QUIET) || (global.mode & MODE_VERBOSE)))) {
|
||||
char pn[INET6_ADDRSTRLEN];
|
||||
int len;
|
||||
int len = 0;
|
||||
|
||||
if (!(s->flags & SN_FRT_ADDR_SET))
|
||||
get_frt_addr(s);
|
||||
|
||||
Reference in New Issue
Block a user