From c80559d64791e42f8fec9056343f4629720323e4 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 15 Nov 2015 20:31:47 +1100 Subject: Fix not passing through first cipher argument in vararg form --- src/openssl.ssl.context.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/openssl.ssl.context.lua b/src/openssl.ssl.context.lua index 2da84de..2098b54 100644 --- a/src/openssl.ssl.context.lua +++ b/src/openssl.ssl.context.lua @@ -5,7 +5,7 @@ local pack = table.pack or function(...) return { n = select("#", ...); ... } en -- Allow passing a vararg of ciphers, or an array local setCipherList; setCipherList = ctx.interpose("setCipherList", function (self, ciphers, ...) if (...) then - local ciphers_t = pack(...) + local ciphers_t = pack(ciphers, ...) ciphers = table.concat(ciphers_t, ":", 1, ciphers_t.n) elseif type(ciphers) == "table" then ciphers = table.concat(ciphers, ":") -- cgit v1.2.3-59-g8ed1b