From: Jo-Philipp Wich Date: Sat, 27 Dec 2008 01:42:34 +0000 (+0000) Subject: libs/ip: return a copy of given tables in __mask16() to avoid destroying them later X-Git-Tag: 0.9.0~857 X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=870397a3cd621561e8f464d1aed7b0cef88d98d7;p=project%2Fluci.git libs/ip: return a copy of given tables in __mask16() to avoid destroying them later --- 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" )