]> git.kaiwu.me - nginx.git/commit
SSL: fixed memory leak in ngx_ssl_get_ech_outer_server_name(). master
authorDavid Carlier <devnexen@gmail.com>
Tue, 16 Jun 2026 18:58:28 +0000 (19:58 +0100)
committerAleksei Bavshin <a.bavshin@f5.com>
Mon, 13 Jul 2026 18:46:20 +0000 (11:46 -0700)
commitdb9ba42db8d46dbc86af4ead10c1a256dd4144f6
treedf9fff64d4e645806a25420a24789f7195053c35
parent4d0e620f9ad4e81dc229ca423fbbf3c2e23b3f83
SSL: fixed memory leak in ngx_ssl_get_ech_outer_server_name().

SSL_ech_get1_status() allocates inner_sni and outer_sni and transfers
ownership to the caller.  On the allocation-failure path the function
returned without freeing them, unlike ngx_ssl_get_ech_status() which
frees both on all paths.
src/event/ngx_event_openssl.c