From 4b26b17ce6a50843275ee609f11107a92ca7bfdf Mon Sep 17 00:00:00 2001 From: detailyang Date: Sun, 7 May 2017 22:30:16 +0800 Subject: [PATCH] refactor: no need to assign ctx again after ffi_gc --- lib/ngx/ssl.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ngx/ssl.lua b/lib/ngx/ssl.lua index 19efe8d7b..28db5c0fe 100644 --- a/lib/ngx/ssl.lua +++ b/lib/ngx/ssl.lua @@ -295,7 +295,7 @@ function _M.create_ctx(options) return nil, ffi_str(errmsg[0]) end - ctx = ffi_gc(ctx, C.ngx_http_lua_ffi_ssl_ctx_free) + ffi_gc(ctx, C.ngx_http_lua_ffi_ssl_ctx_free) local err_buf = get_string_buf(ERR_BUF_SIZE) local err_buf_len = get_size_ptr()