diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-12-27 01:42:34 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-12-27 01:42:34 +0000 |
commit | 870397a3cd621561e8f464d1aed7b0cef88d98d7 (patch) | |
tree | e021f65e19bfee2fb709255f8a125e236fffb0cc /libs | |
parent | 75e9772baae4d04803f191cbd832c204c9538d5b (diff) |
libs/ip: return a copy of given tables in __mask16() to avoid destroying them later
Diffstat (limited to 'libs')
-rw-r--r-- | libs/core/luasrc/ip.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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" ) |