mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-15 12:30:16 -04: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:
parent
96c148b0d2
commit
b0f7532a30
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue