mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-27 16:51:30 +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:
parent
96c148b0d2
commit
b0f7532a30
@ -178,7 +178,7 @@ int frontend_accept(struct session *s)
|
|||||||
|
|
||||||
if (unlikely((global.mode & MODE_DEBUG) && (!(global.mode & MODE_QUIET) || (global.mode & MODE_VERBOSE)))) {
|
if (unlikely((global.mode & MODE_DEBUG) && (!(global.mode & MODE_QUIET) || (global.mode & MODE_VERBOSE)))) {
|
||||||
char pn[INET6_ADDRSTRLEN];
|
char pn[INET6_ADDRSTRLEN];
|
||||||
int len;
|
int len = 0;
|
||||||
|
|
||||||
if (!(s->flags & SN_FRT_ADDR_SET))
|
if (!(s->flags & SN_FRT_ADDR_SET))
|
||||||
get_frt_addr(s);
|
get_frt_addr(s);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user