diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-28 08:37:34 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-28 08:37:34 +0100 |
commit | 61f8601c3b987f7b24f9a61a2f622ee797368e03 (patch) | |
tree | aeb4545843d28035d9ac5b34d94fa577c7f744f8 /src/libserver | |
parent | ee00a0423781a3156569fb3f781c5c9958361c78 (diff) | |
download | rspamd-61f8601c3b987f7b24f9a61a2f622ee797368e03.tar.gz rspamd-61f8601c3b987f7b24f9a61a2f622ee797368e03.zip |
[Rework] Kill surbl C module
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/protocol.c | 6 | ||||
-rw-r--r-- | src/libserver/url.h | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index a7abc5947..f09784c48 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -875,9 +875,9 @@ rspamd_protocol_extended_url (struct rspamd_task *task, elt = ucl_object_fromlstring (encoded, enclen); ucl_object_insert_key (obj, elt, "url", 0, false); - if (url->surbllen > 0) { - elt = ucl_object_fromlstring (url->surbl, url->surbllen); - ucl_object_insert_key (obj, elt, "surbl", 0, false); + if (url->tldlen > 0) { + elt = ucl_object_fromlstring (url->tld, url->tldlen); + ucl_object_insert_key (obj, elt, "tld", 0, false); } if (url->hostlen > 0) { elt = ucl_object_fromlstring (url->host, url->hostlen); diff --git a/src/libserver/url.h b/src/libserver/url.h index d9e15e212..ae21b6ab3 100644 --- a/src/libserver/url.h +++ b/src/libserver/url.h @@ -51,7 +51,6 @@ struct rspamd_url { gchar *data; gchar *query; gchar *fragment; - gchar *surbl; gchar *tld; gchar *visible_part; @@ -63,7 +62,6 @@ struct rspamd_url { guint datalen; guint querylen; guint fragmentlen; - guint surbllen; guint tldlen; guint urllen; guint rawlen; |