# HG changeset patch # User Kim Alvefur # Date 1614768699 -3600 # Node ID 35381608d32378a3091f45f92f3ceec24560eadd # Parent cf2bdb2aaa5794ca93f28b96f646d42424af7079 mod_s2s_auth_dane: Fix traceback in DANE-TA check because unpack() moved It moved into the table package in Lua 5.2, error happens when compat is disabled or gone (ie 5.3+). This happened in DANE-TA, which is disabled by default. diff -r cf2bdb2aaa57 -r 35381608d323 mod_s2s_auth_dane/mod_s2s_auth_dane.lua --- a/mod_s2s_auth_dane/mod_s2s_auth_dane.lua Wed Mar 03 11:43:38 2021 +0100 +++ b/mod_s2s_auth_dane/mod_s2s_auth_dane.lua Wed Mar 03 11:51:39 2021 +0100 @@ -21,6 +21,7 @@ local have_async, async = pcall(require, "util.async"); local noop = function () end +local unpack = table.unpack or _G.unpack; local type = type; local t_insert = table.insert; local set = require"util.set";