]> git.kaiwu.me - nginx.git/commit
SSL: workaround for i2d_SSL_SESSION() negative values
authorVadim Zhestikov <v.zhestikov@f5.com>
Wed, 22 Jul 2026 23:10:18 +0000 (16:10 -0700)
committerVadimZhestikov <108960056+VadimZhestikov@users.noreply.github.com>
Thu, 15 Oct 2026 15:15:52 +0000 (08:15 -0700)
commitfaf94389890f4fd598464f70ae0911c01e40b6ab
tree283d4132cc18e142893d660061e9f16861a9b3a7
parente72a6a0bc398f61b30bb426dd327df02a48ced3d
SSL: workaround for i2d_SSL_SESSION() negative values

i2d_SSL_SESSION() may unexpectedly return a negative value on
memory allocation failure, even though the NULL buffer was passed,
notably in LibreSSL.

Reported by szzzy.
src/event/ngx_event_openssl.c
src/http/ngx_http_upstream_round_robin.c
src/stream/ngx_stream_upstream_round_robin.c