Skip to content

Commit 4b26b17

Browse files
committed
refactor: no need to assign ctx again after ffi_gc
1 parent 2052108 commit 4b26b17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ngx/ssl.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ function _M.create_ctx(options)
295295
return nil, ffi_str(errmsg[0])
296296
end
297297

298-
ctx = ffi_gc(ctx, C.ngx_http_lua_ffi_ssl_ctx_free)
298+
ffi_gc(ctx, C.ngx_http_lua_ffi_ssl_ctx_free)
299299

300300
local err_buf = get_string_buf(ERR_BUF_SIZE)
301301
local err_buf_len = get_size_ptr()

0 commit comments

Comments
 (0)