MEDIUM: session: use the pointer to the origin instead of s->si[0].end
When s->si[0].end was dereferenced as a connection or anything in
order to retrieve information about the originating session, we'll
now use sess->origin instead so that when we have to chain multiple
streams in HTTP/2, we'll keep accessing the same origin.
diff --git a/src/dumpstats.c b/src/dumpstats.c
index 1562078..2aed81a 100644
--- a/src/dumpstats.c
+++ b/src/dumpstats.c
@@ -5022,7 +5022,7 @@
sess->uniq_id,
strm_sess(sess)->listener && strm_sess(sess)->listener->proto->name ? strm_sess(sess)->listener->proto->name : "?");
- conn = objt_conn(sess->si[0].end);
+ conn = objt_conn(strm_sess(sess)->origin);
switch (conn ? addr_to_str(&conn->addr.from, pn, sizeof(pn)) : AF_UNSPEC) {
case AF_INET:
case AF_INET6:
@@ -5604,7 +5604,7 @@
strm_sess(curr_sess)->listener->proto->name);
- conn = objt_conn(curr_sess->si[0].end);
+ conn = objt_conn(strm_sess(curr_sess)->origin);
switch (conn ? addr_to_str(&conn->addr.from, pn, sizeof(pn)) : AF_UNSPEC) {
case AF_INET:
case AF_INET6: