Skip to content

Commit 0e95917

Browse files
committed
fix params check in sslhandshake
1 parent b755abf commit 0e95917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resty/core/socket.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ local function sslhandshake(cosocket, reused_session, server_name, ssl_verify,
183183
send_status_req, ...)
184184

185185
local n = select("#", ...)
186-
if not cosocket or n > 1 then
186+
if not cosocket or n > 0 then
187187
error("ngx.socket sslhandshake: expecting 1 ~ 5 arguments " ..
188188
"(including the object), but seen " .. (cosocket and 5 + n or 0))
189189
end

0 commit comments

Comments
 (0)