]> git.ipfire.org Git - thirdparty/openssl.git/commit
quic: free popped incoming channel on early exit in accept_connection
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Sun, 12 Oct 2025 13:28:08 +0000 (21:28 +0800)
committerTomas Mraz <tomas@openssl.org>
Mon, 12 Jan 2026 18:49:41 +0000 (19:49 +0100)
commitd62febf758fafdfa90a599df2028cbe1b5d52f2a
treed1a1ba9a81c1efbe7c274e7b862196df952acb09
parenta8f8e64a560ddf72dd2694ce32eb63a1e8916b00
quic: free popped incoming channel on early exit in accept_connection

If we pop a channel but fail to extract or adopt its SSL pointer,
we return without releasing the channel. Add a small cleanup at
the function epilogue to free new_ch when conn_ssl is NULL.

Signed-off-by: Joshua Rogers <MegaManSec@users.noreply.github.com>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
MergeDate: Mon Jan 12 18:54:05 2026
(Merged from https://github.com/openssl/openssl/pull/28920)
ssl/quic/quic_impl.c