BUG/MEDIUM: quic: fix sslconns on quic_conn alloc failure

QUIC connections are accounted inside global sslconns. As with QUIC
actconn, it suffered from a similar issue if an intermediary allocation
failed inside qc_new_conn().

Fix this similarly by moving increment operation inside qc_new_conn().
Increment and error path are now centralized and much easier to
validate.

The consequences are similar to the actconn fix : on memory allocation
global sslconns may wrap, this time blocking any future QUIC or SSL
connections on the process.

This must be backported up to 2.6.

(cherry picked from commit 6f9b65f952c7435d6bdb61ba547c0b56a32e2c0a)
[cf: quic_rx_pkt_retrieve_conn() is in quic_conn.c and quic_rx does not
     exsit in 2.8]
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed