From: Abhinav Agarwal Date: Tue, 24 Mar 2026 02:17:04 +0000 (-0700) Subject: quic: add missing return 0 after raise_protocol_error for NEW_CONN_ID X-Git-Tag: openssl-4.0.0~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0da9829478741df76d5f59f5ee6b3b6a46f85f75;p=thirdparty%2Fopenssl.git quic: add missing return 0 after raise_protocol_error for NEW_CONN_ID Every other frame type handler in depack_process_frames() returns 0 after calling ossl_quic_channel_raise_protocol_error(), but the NEW_CONN_ID case falls through to depack_do_frame_new_conn_id(). Reviewed-by: Paul Dale Reviewed-by: Saša Nedvědický Reviewed-by: Eugene Syromiatnikov MergeDate: Fri Mar 27 16:48:44 2026 (Merged from https://github.com/openssl/openssl/pull/30550) (cherry picked from commit e6e01f00aa4196d3c133fac6c83dccfbda5b1e69) --- diff --git a/ssl/quic/quic_rx_depack.c b/ssl/quic/quic_rx_depack.c index 83f66ef59e5..55345bf2cf9 100644 --- a/ssl/quic/quic_rx_depack.c +++ b/ssl/quic/quic_rx_depack.c @@ -1316,6 +1316,7 @@ static int depack_process_frames(QUIC_CHANNEL *ch, PACKET *pkt, OSSL_QUIC_ERR_PROTOCOL_VIOLATION, frame_type, "NEW_CONN_ID valid only in 0/1-RTT"); + return 0; } if (!depack_do_frame_new_conn_id(pkt, ch, ackm_data)) return 0;