commit d61738f: [Minor] Fix number, sigh

Vsevolod Stakhov vsevolod at highsecure.ru
Fri May 3 16:42:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-05-03 17:37:31 +0100
URL: https://github.com/rspamd/rspamd/commit/d61738f7943f8e2511249ebef39dbb7b53ab3c2b (HEAD -> master)

[Minor] Fix number, sigh

---
 src/lua/lua_task.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index addb870c1..2529b88d6 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -2730,8 +2730,8 @@ lua_task_get_dns_req (lua_State *L)
 
 enum rspamd_address_type {
 	RSPAMD_ADDRESS_ANY = 0u,
-	RSPAMD_ADDRESS_SMTP = 1u << 0u,
-	RSPAMD_ADDRESS_MIME = 1u << 2u,
+	RSPAMD_ADDRESS_SMTP = 1,
+	RSPAMD_ADDRESS_MIME = 2,
 	RSPAMD_ADDRESS_MASK = 0x3FF,
 	RSPAMD_ADDRESS_RAW = (1u << 10),
 	RSPAMD_ADDRESS_ORIGINAL = (1u << 11),


More information about the Commits mailing list