mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-20 13:21:29 +02:00
BUG/MINOR: quic: fix return value for error in start
Fix the return value used in quic-conn start callback for error. The caller expects a negative value in this case. Without this patch, the quic-conn and the connection stack are not closed despite an initialization failure error, which is an undefined behavior and may cause a crash in the end.
This commit is contained in:
parent
622ec4166b
commit
05d4ae6436
@ -5756,7 +5756,7 @@ static int qc_xprt_start(struct connection *conn, void *ctx)
|
||||
qc = conn->handle.qc;
|
||||
if (qcc_install_app_ops(qc->qcc, qc->app_ops)) {
|
||||
TRACE_PROTO("Cannot install app layer", QUIC_EV_CONN_LPKT, qc);
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* mux-quic can now be considered ready. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user