Skip to content

Commit b989a8a

Browse files
bugfix: NGX_STREAM_LUA_CONTEXT_SSL_CLIENT_HELLO was missed in ngx_stream_lua_ffi_set_ctx_ref.
1 parent 6ff9ff2 commit b989a8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ngx_stream_lua_ctx.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ ngx_stream_lua_ffi_set_ctx_ref(ngx_stream_lua_request_t *r, int ref)
129129
}
130130

131131
#if (NGX_STREAM_SSL)
132-
if (ctx->context & NGX_STREAM_LUA_CONTEXT_SSL_CERT) {
132+
if (ctx->context & (NGX_STREAM_LUA_CONTEXT_SSL_CERT
133+
| NGX_STREAM_LUA_CONTEXT_SSL_CLIENT_HELLO))
134+
{
133135
ssl_ctx = ngx_stream_lua_ssl_get_ctx(r->connection->ssl->connection);
134136
if (ssl_ctx == NULL) {
135137
return NGX_ERROR;

0 commit comments

Comments
 (0)