MINOR: quic: BUG_ON() SSL errors.

As this QUIC implementation is still experimental, let's BUG_ON()
very important SSL handshake errors.
Also dump the SSL errors before BUG_ON().
This commit is contained in:
Frédéric Lécaille 2021-09-28 09:05:59 +02:00 committed by Amaury Denoyelle
parent 6f0fadb5a7
commit 7c881bdab8

View 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;
}