aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_ip.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-14 16:52:33 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-14 16:52:33 +0100
commit7238b9cfe41d73d90979902f600e55d89908c831 (patch)
tree98d6bd55c6ecb1e8ef2d2abd49e72cff331861fb /src/lua/lua_ip.c
parent98a7518f0b8f5bec20b5995ffcfde079b3fc8138 (diff)
downloadrspamd-7238b9cfe41d73d90979902f600e55d89908c831.tar.gz
rspamd-7238b9cfe41d73d90979902f600e55d89908c831.zip
[Fix] Some fixes to libmagic initialization
Diffstat (limited to 'src/lua/lua_ip.c')
-rw-r--r--src/lua/lua_ip.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/lua_ip.c b/src/lua/lua_ip.c
index 5dd85f4a8..97f75ddda 100644
--- a/src/lua/lua_ip.c
+++ b/src/lua/lua_ip.c
@@ -224,7 +224,7 @@ lua_ip_to_table (lua_State *L)
if (ip != NULL && ip->addr) {
lua_newtable (L);
- ptr = rspamd_inet_address_get_radix_key (ip->addr, &max);
+ ptr = rspamd_inet_address_get_hash_key (ip->addr, &max);
for (i = 1; i <= max; i++, ptr++) {
lua_pushnumber (L, *ptr);
@@ -250,7 +250,7 @@ lua_ip_str_octets (lua_State *L)
if (ip != NULL && ip->addr) {
lua_newtable (L);
af = rspamd_inet_address_get_af (ip->addr);
- ptr = rspamd_inet_address_get_radix_key (ip->addr, &max);
+ ptr = rspamd_inet_address_get_hash_key (ip->addr, &max);
for (i = 1; i <= max; i++, ptr++) {
if (af == AF_INET) {
@@ -289,7 +289,7 @@ lua_ip_inversed_str_octets (lua_State *L)
if (ip != NULL && ip->addr) {
lua_newtable (L);
- ptr = rspamd_inet_address_get_radix_key (ip->addr, &max);
+ ptr = rspamd_inet_address_get_hash_key (ip->addr, &max);
af = rspamd_inet_address_get_af (ip->addr);
ptr += max - 1;
@@ -379,7 +379,7 @@ lua_ip_to_number (lua_State *L)
guchar *ptr;
if (ip != NULL && ip->addr) {
- ptr = rspamd_inet_address_get_radix_key (ip->addr, &max);
+ ptr = rspamd_inet_address_get_hash_key (ip->addr, &max);
for (i = 0; i < max / sizeof (c); i ++) {
memcpy (&c, ptr + i * sizeof (c), sizeof (c));