From 91d378a86ef6dfd34f80ad10bb83ec3b5fd14a72 Mon Sep 17 00:00:00 2001 From: Bruno Silvestre Date: Thu, 12 Feb 2015 16:29:02 -0200 Subject: [PATCH] Fix unpack(). --- src/ssl.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ssl.lua b/src/ssl.lua index 99036f5..afc40a5 100644 --- a/src/ssl.lua +++ b/src/ssl.lua @@ -8,6 +8,8 @@ local core = require("ssl.core") local context = require("ssl.context") local x509 = require("ssl.x509") +local unpack = table.unpack or unpack + -- We must prevent the contexts to be collected before the connections, -- otherwise the C registry will be cleared. local registry = setmetatable({}, {__mode="k"})