From 870397a3cd621561e8f464d1aed7b0cef88d98d7 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 27 Dec 2008 01:42:34 +0000 Subject: [PATCH] libs/ip: return a copy of given tables in __mask16() to avoid destroying them later --- libs/core/luasrc/ip.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/core/luasrc/ip.lua b/libs/core/luasrc/ip.lua index 98666e5a5..8ac017e02 100644 --- a/libs/core/luasrc/ip.lua +++ b/libs/core/luasrc/ip.lua @@ -65,7 +65,7 @@ local function __array16( x, family ) list = { unpack(x[2]) } elseif type(x) == "table" then - list = x + list = { unpack(x) } end assert( list, "Invalid operand" ) -- 2.11.0