mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-23 07:08:06 -04:00
BUG/MINOR: cli: show sess should always validate s->listener
Currently s->listener is set for all sessions, but this may not remain the case forever so we already check s->listener for validity. On check was missed. Reported-by: Dinko Korunic <dkorunic@reflected.net>
This commit is contained in:
parent
bb95666bac
commit
e95c4ce1b7
1 changed files with 1 additions and 1 deletions
|
|
@ -3538,7 +3538,7 @@ static int stats_dump_full_sess_to_buffer(struct stream_interface *si, struct se
|
|||
tm.tm_mday, monthname[tm.tm_mon], tm.tm_year+1900,
|
||||
tm.tm_hour, tm.tm_min, tm.tm_sec, (int)(sess->logs.accept_date.tv_usec),
|
||||
sess->uniq_id,
|
||||
sess->listener->proto->name);
|
||||
sess->listener && sess->listener->proto->name ? sess->listener->proto->name : "?");
|
||||
|
||||
switch (addr_to_str(&sess->si[0].conn->addr.from, pn, sizeof(pn))) {
|
||||
case AF_INET:
|
||||
|
|
|
|||
Loading…
Reference in a new issue