]> git.kaiwu.me - nginx.git/commit
SSL: workaround for SSL_get_negotiated_group() with no session master
authorAnuj <anu.sharma@f5.com>
Thu, 26 Nov 2026 14:05:31 +0000 (14:05 +0000)
committerSergey Kandaurov <pluknet@nginx.com>
Thu, 26 Nov 2026 16:43:25 +0000 (20:43 +0400)
commit0e0c6edd90593a43d05ef921c046cf284035b1ed
treec16d97cfff594fd8ad2eb1bfe15c349651b08da8
parent6d81cb7c629bd4bb17250d2995e92b2ff309d41b
SSL: workaround for SSL_get_negotiated_group() with no session

OpenSSL prior to 3.5.0 dereferences a NULL session pointer in
SSL_get_negotiated_group() when called on a connection where no
session is established yet, fixed in this commit:

https://github.com/openssl/openssl/commit/4ca80d3941

Supported OpenSSL versions are not affected, but the workaround is
applied for older OpenSSL versions we keep compatibility with.
The fix is to check for the session explicitly.
src/event/ngx_event_openssl.c