We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0533ba commit a975f7dCopy full SHA for a975f7d
1 file changed
lib/ngx/ssl/clienthello.lua
@@ -22,6 +22,7 @@ local lshift = bit.lshift
22
local table_insert = table.insert
23
local table_new = require "table.new"
24
local intp = ffi.new("int*[1]")
25
+local usp = ffi.new("unsigned short*[1]")
26
27
28
local ngx_lua_ffi_ssl_get_client_hello_server_name
@@ -169,10 +170,10 @@ function _M.get_client_hello_ciphers()
169
170
171
local sizep = get_size_ptr()
172
- local rc = ngx_lua_ffi_ssl_get_client_hello_ciphers(r, intp,
173
+ local rc = ngx_lua_ffi_ssl_get_client_hello_ciphers(r, usp,
174
sizep, errmsg)
175
if rc == FFI_OK then
- local array = intp[0]
176
+ local array = usp[0]
177
local size = tonumber(sizep[0])
178
local ciphers_table = table_new(size, 0)
179
for i=0, size-1, 1 do
0 commit comments