aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorWessel Dankers <wsl@uvt.nl>2019-09-19 17:36:59 +0200
committerWessel Dankers <wsl@uvt.nl>2019-09-19 17:36:59 +0200
commita20ac6ef142cff3fd91ec5b8a585f198d97229ad (patch)
treeb7381b6735bf3aaf300273f7fe8574b140698ba7 /src/lua
parent84384ae4e65ff85b0feedd00ec27506dd5b9dbc7 (diff)
downloadrspamd-a20ac6ef142cff3fd91ec5b8a585f198d97229ad.tar.gz
rspamd-a20ac6ef142cff3fd91ec5b8a585f198d97229ad.zip
[Fix] Fix lua_ip_equal logic
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_ip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_ip.c b/src/lua/lua_ip.c
index 1d44af2bf..942817b5c 100644
--- a/src/lua/lua_ip.c
+++ b/src/lua/lua_ip.c
@@ -490,7 +490,7 @@ lua_ip_equal (lua_State *L)
gboolean res = FALSE;
if (ip1 && ip2 && ip1->addr && ip2->addr) {
- res = rspamd_inet_address_compare (ip1->addr, ip2->addr, TRUE);
+ res = rspamd_inet_address_compare (ip1->addr, ip2->addr, TRUE) == 0;
}
lua_pushboolean (L, res);