Skip to content

Commit 5caa860

Browse files
style: fixed coding style.
1 parent c4b86fb commit 5caa860

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

lib/ngx/ssl/clienthello.lua

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,6 @@ function _M.get_client_hello_ciphers()
209209
return ciphers_table
210210
end
211211

212-
-- NGX_DECLINED
213-
if rc == -5 then
214-
return nil
215-
end
216-
217212
return nil, ffi_str(errmsg[0])
218213
end
219214

lib/resty/core/request.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,12 @@ if subsystem == "stream" then
7474
local buf_sizep = ffi_new("size_t[1]")
7575

7676
function ngx.req.get_original_addr()
77+
local rc
7778
local r = get_request()
7879
local err = get_string_buf(ERR_BUF_SIZE)
7980
local errlenp = get_size_ptr()
8081
buf_sizep[0] = 128
81-
local rc = C.ngx_stream_lua_ffi_req_dst_addr(r, buf, buf_sizep, err, errlenp)
82+
rc = C.ngx_stream_lua_ffi_req_dst_addr(r, buf, buf_sizep, err, errlenp)
8283
if tonumber(rc) ~= 0 then
8384
return nil, tostring(err, errlenp[0])
8485
end

0 commit comments

Comments
 (0)