diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-16 18:21:51 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-16 18:21:51 +0100 |
commit | 80bbb6bf904499490d1d7879bbedbf46b0b7632d (patch) | |
tree | 1a62702dd1afcbc35cc23f1697c4bae89ca5e7b6 /src/lua | |
parent | c558398b7bfb8d5ceb1d4148130f8b39d438833d (diff) | |
download | rspamd-80bbb6bf904499490d1d7879bbedbf46b0b7632d.tar.gz rspamd-80bbb6bf904499490d1d7879bbedbf46b0b7632d.zip |
[Rework] Stop support of signed HTTP maps to simplify code
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_map.c | 2 | ||||
-rw-r--r-- | src/lua/lua_util.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/lua/lua_map.c b/src/lua/lua_map.c index b28543c07..bead7ae4a 100644 --- a/src/lua/lua_map.c +++ b/src/lua/lua_map.c @@ -997,7 +997,7 @@ lua_map_is_signed (lua_State *L) if (map->map) { for (i = 0; i < map->map->backends->len; i ++) { bk = g_ptr_array_index (map->map->backends, i); - if (bk->is_signed) { + if (bk->is_signed && bk->protocol == MAP_PROTO_FILE) { ret = TRUE; break; } diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c index 7ff9d75f8..927ada2d4 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -1038,8 +1038,6 @@ lua_util_decode_base64 (lua_State *L) struct rspamd_lua_text *t; const gchar *s = NULL; gsize inlen = 0, outlen; - gint state = 0; - guint save = 0; if (lua_type (L, 1) == LUA_TSTRING) { s = luaL_checklstring (L, 1, &inlen); |