aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-28 16:25:06 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-28 16:25:06 +0000
commitf93080e713b886f313bf31bd51dd9c397cec8cb1 (patch)
treefbc1c0be17830c1005918c3fcd126502db7a2855
parentbaa008ed3bb6f0f31783478d8069e5e8fc5ae7d4 (diff)
downloadrspamd-f93080e713b886f313bf31bd51dd9c397cec8cb1.tar.gz
rspamd-f93080e713b886f313bf31bd51dd9c397cec8cb1.zip
[Minor] Fix length in email addresses heuristic
-rw-r--r--src/libmime/email_addr.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libmime/email_addr.c b/src/libmime/email_addr.c
index b00ddba1e..b1d54e73b 100644
--- a/src/libmime/email_addr.c
+++ b/src/libmime/email_addr.c
@@ -166,11 +166,6 @@ rspamd_email_address_parse_heuristic (const char *data, size_t len,
if (*p == '<' && len > 1) {
/* Angled address */
addr->addr_len = rspamd_memcspn (p + 1, ">", len - 1);
-
- if (addr->addr_len > 1) {
- addr->addr_len --;
- }
-
addr->addr = p + 1;
addr->raw = p;
addr->raw_len = len;