File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ local lshift = bit.lshift
22
22
local table_insert = table.insert
23
23
local table_new = require " table.new"
24
24
local intp = ffi .new (" int*[1]" )
25
+ local usp = ffi .new (" unsigned short*[1]" )
25
26
26
27
27
28
local ngx_lua_ffi_ssl_get_client_hello_server_name
@@ -169,10 +170,10 @@ function _M.get_client_hello_ciphers()
169
170
170
171
local sizep = get_size_ptr ()
171
172
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 ,
173
174
sizep , errmsg )
174
175
if rc == FFI_OK then
175
- local array = intp [0 ]
176
+ local array = usp [0 ]
176
177
local size = tonumber (sizep [0 ])
177
178
local ciphers_table = table_new (size , 0 )
178
179
for i = 0 , size - 1 , 1 do
You can’t perform that action at this time.
0 commit comments