libs/core/ip: fix prefix length handling in Hex() constructor
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 26 Nov 2008 22:29:14 +0000 (22:29 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 26 Nov 2008 22:29:14 +0000 (22:29 +0000)
libs/core/luasrc/ip.lua

index bba701a..c5ebfca 100644 (file)
@@ -314,7 +314,7 @@ function Hex( hex, prefix, family, swap )
                end
        end
 
-       return __bless({ family, data, len })
+       return __bless({ family, data, prefix })
 end