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 bba701ae24c3f1114f01c2021e9878535f6a9b2b..c5ebfcab0d876c1e4d22529e3c6ae8beb289869d 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