summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-15 15:09:59 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-15 15:09:59 +0100
commit055c4b9f6fb365c80a4075b26fb3b5d005e79cc4 (patch)
treed7e112372caa678b29f77da36db0c0c6776a9bae
parent1259f3bb95bb5b450cc1543f9dae701bf4fe7fcb (diff)
downloadrspamd-055c4b9f6fb365c80a4075b26fb3b5d005e79cc4.tar.gz
rspamd-055c4b9f6fb365c80a4075b26fb3b5d005e79cc4.zip
Remove some of unused url fields.
-rw-r--r--src/libserver/url.c3
-rw-r--r--src/libserver/url.h9
2 files changed, 4 insertions, 8 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c
index ca8e0d7dc..345bd62a3 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -953,7 +953,8 @@ rspamd_url_parse (struct rspamd_url *uri, gchar *uristring, gsize len,
/* We have extra data at the end of uri, so we are ignoring it for now */
p = rspamd_mempool_alloc (pool, end - uristring + 1);
rspamd_strlcpy (p, uristring, end - uristring + 1);
- len = end - uristring ;
+ len = end - uristring;
+ uri->urllen = len;
}
for (i = 0; i < UF_MAX; i ++) {
diff --git a/src/libserver/url.h b/src/libserver/url.h
index 1c76294cd..664f1a945 100644
--- a/src/libserver/url.h
+++ b/src/libserver/url.h
@@ -12,8 +12,6 @@ struct rspamd_url {
gchar *string;
gint protocol;
- gint ip_family;
-
gchar *user;
gchar *password;
gchar *host;
@@ -21,7 +19,6 @@ struct rspamd_url {
gchar *data;
gchar *query;
gchar *fragment;
- gchar *post;
gchar *surbl;
struct rspamd_url *phished_url;
@@ -30,15 +27,13 @@ struct rspamd_url {
guint userlen;
guint passwordlen;
guint hostlen;
- guint portlen;
guint datalen;
guint querylen;
guint fragmentlen;
guint surbllen;
- /* Flags */
- gboolean ipv6; /* URI contains IPv6 host */
- gboolean form; /* URI originated from form */
+ guint urllen;
+
gboolean is_phished; /* URI maybe phishing */
};