aboutsummaryrefslogtreecommitdiffstats
path: root/src/ragel
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-25 13:21:51 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-25 13:21:51 +0100
commita03b2c328b0c9cb332527adb584b6e3496de5e46 (patch)
treea46ff1eabb22c94e76324805be0d38d6ae8efa72 /src/ragel
parentd21fdd376f883510ae2bf5de7307eb59d84cb614 (diff)
downloadrspamd-a03b2c328b0c9cb332527adb584b6e3496de5e46.tar.gz
rspamd-a03b2c328b0c9cb332527adb584b6e3496de5e46.zip
[Fix] Deal with 8bit characters in email addresses
Diffstat (limited to 'src/ragel')
-rw-r--r--src/ragel/smtp_addr_parser.rl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ragel/smtp_addr_parser.rl b/src/ragel/smtp_addr_parser.rl
index 7e8498966..501ee82f4 100644
--- a/src/ragel/smtp_addr_parser.rl
+++ b/src/ragel/smtp_addr_parser.rl
@@ -54,7 +54,9 @@
}
action Valid_addr {
- addr->flags |= RSPAMD_EMAIL_ADDR_VALID;
+ if (addr->addr_len > 0) {
+ addr->flags |= RSPAMD_EMAIL_ADDR_VALID;
+ }
}
action Addr_has_angle {