libs/ip: return a copy of given tables in __mask16() to avoid destroying them later

This commit is contained in:
Jo-Philipp Wich 2008-12-27 01:42:34 +00:00
parent 75e9772baa
commit 870397a3cd

View file

@ -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" )