MINOR: mux_h2: do not try to remove front conn from idle trees
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 19 Feb 2021 14:37:38 +0000 (15:37 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 19 Feb 2021 15:35:13 +0000 (16:35 +0100)
commit3d752a8f97f391b8e6f97c3301442b3ebda38c72
tree1f3f4533a6263358af4a9017e9452dd0ce38c6f1
parent66161326fd120652557d419810b1323405d7859d
MINOR: mux_h2: do not try to remove front conn from idle trees

In h2_process there was two parts where the connection was removed from
the idle trees, without first checking if the connection is a backend
side.

This should not produce a crash as the node is properly zeroed on
conn_init. However, it is better to explicit the test as it is done on
all other places. Besides it will be mandatory if the node part is
dynamically allocated only for backend connections.
src/mux_h2.c