summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-11-26 22:29:14 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-11-26 22:29:14 +0000
commitfda52c6fec10b18c79bed23d8fa6972a3147139b (patch)
tree8e7f7d65380e52bf95a3dd448f8baa8458888cea /libs
parenta430b5c189bb5a19d9d69765750e55efb035e33c (diff)
libs/core/ip: fix prefix length handling in Hex() constructor
Diffstat (limited to 'libs')
-rw-r--r--libs/core/luasrc/ip.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/core/luasrc/ip.lua b/libs/core/luasrc/ip.lua
index bba701ae2..c5ebfcab0 100644
--- a/libs/core/luasrc/ip.lua
+++ b/libs/core/luasrc/ip.lua
@@ -314,7 +314,7 @@ function Hex( hex, prefix, family, swap )
end
end
- return __bless({ family, data, len })
+ return __bless({ family, data, prefix })
end