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:
Willy Tarreau 2013-01-24 00:48:39 +01:00
parent bb95666bac
commit e95c4ce1b7

View file

@ -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: