]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: BUG_ON() SSL errors.
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 28 Sep 2021 07:05:59 +0000 (09:05 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 7 Oct 2021 15:35:25 +0000 (17:35 +0200)
As this QUIC implementation is still experimental, let's BUG_ON()
very important SSL handshake errors.
Also dump the SSL errors before BUG_ON().

src/xprt_quic.c

index 750e4d016cd6d206b706f6bac0218a61662e0eb8..16d66f35bdde614826719dd83e4cab67c9352428 100644 (file)
@@ -1622,6 +1622,8 @@ static inline int qc_provide_cdata(struct quic_enc_level *el,
 
                        TRACE_DEVEL("SSL handshake error",
                                    QUIC_EV_CONN_HDSHK, ctx->conn, &state, &ssl_err);
+                       qc_ssl_dump_errors(ctx->conn);
+                       BUG_ON(1);
                        goto err;
                }